Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008647/0.0008647, allocations: 175.3 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.198/1.198, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007182/0.0007182, allocations: 90.39 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06342/0.06342, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003663, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07296/0.07334, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001404/0.07478, allocations: 1.29 MB / 443.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006263/0.07542, allocations: 0.5117 MB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.553e-05/0.07552, allocations: 0 / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.07557, allocations: 7.938 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.0757, allocations: 11.91 kB / 444.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.07596, allocations: 43.91 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.07606, allocations: 43.84 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.4e-05/0.07614, allocations: 16.17 kB / 444.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.245e-05/0.07623, allocations: 35.86 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.021e-05/0.07629, allocations: 19.86 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.07631, allocations: 3.984 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.255e-05/0.07633, allocations: 7.938 kB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.372e-05/0.07637, allocations: 11.98 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.655e-05/0.07641, allocations: 45.52 kB / 444.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.518e-05/0.07648, allocations: 39.91 kB / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.07649, allocations: 3.938 kB / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.0765, allocations: 0 / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.07651, allocations: 0 / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000365/0.07688, allocations: 375.5 kB / 444.9 MB, free: 14.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.07692, allocations: 15.97 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.74e-05/0.07695, allocations: 34.75 kB / 445 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.07698, allocations: 8.844 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.07712, allocations: 200.1 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.07714, allocations: 4.375 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.07716, allocations: 8.359 kB / 445.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.07744, allocations: 149.7 kB / 445.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.07746, allocations: 0 / 445.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-06/0.07747, allocations: 0 / 445.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.07748, allocations: 0 / 445.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/0.07757, allocations: 39.91 kB / 445.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002291/0.07781, allocations: 270.6 kB / 445.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.07797, allocations: 168.9 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.323e-05/0.07804, allocations: 38.62 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.07807, allocations: 4 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.238e-05/0.07809, allocations: 34.56 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.07809, allocations: 3.938 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002333/0.07833, allocations: 101.5 kB / 446 MB, free: 12.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.07838, allocations: 106.8 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.829e-05/0.07847, allocations: 146.3 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.07848, allocations: 29.7 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.297e-05/0.07851, allocations: 88.12 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.353e-05/0.07853, allocations: 7.906 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.07854, allocations: 4 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.07858, allocations: 314.8 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.583e-05/0.07864, allocations: 15.98 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.778e-05/0.07869, allocations: 56.22 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.232e-05/0.07879, allocations: 68.22 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.0788, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001329/0.07893, allocations: 85.59 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.07895, allocations: 11.94 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.07896, allocations: 0 / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.07898, allocations: 0 / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.161e-05/0.07904, allocations: 20.06 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.07905, allocations: 0 / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.0791, allocations: 11.89 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.07912, allocations: 8 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.552e-05/0.07918, allocations: 121.6 kB / 447.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/0.07925, allocations: 61.75 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.07929, allocations: 12.25 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.07929, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.0793, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.07931, allocations: 15.92 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.07944, allocations: 177.5 kB / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.07944, allocations: 0 / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.843e-05/0.07951, allocations: 15.98 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.07952, allocations: 0 / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.07953, allocations: 4 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.07953, allocations: 0 / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.07954, allocations: 0 / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.07969, allocations: 193 kB / 447.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.776e-05/0.07973, allocations: 97 kB / 447.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.07975, allocations: 4.062 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.722e-05/0.07983, allocations: 7.984 kB / 447.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.07986, allocations: 4 kB / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.07987, allocations: 8 kB / 447.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.453e-05/0.07992, allocations: 107.2 kB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.07993, allocations: 0 / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.08015, allocations: 11.94 kB / 447.8 MB, free: 10.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003853/0.08054, allocations: 0.7414 MB / 448.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.08068, allocations: 47.91 kB / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.08069, allocations: 0 / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-05/0.08073, allocations: 16.31 kB / 448.6 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.08106, allocations: 31.95 kB / 448.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006772/0.08175, allocations: 0.5978 MB / 449.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.08188, allocations: 0.6926 MB / 449.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.91e-05/0.08192, allocations: 23.42 kB / 449.9 MB, free: 8.52 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.08193, allocations: 0 / 449.9 MB, free: 8.52 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.23/2.312, allocations: 1.098 MB / 451 MB, free: 7.426 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,clockToSquareWave.y,sample.y Variables in the result:clockToSquareWave.u,clockToSquareWave.uu,clockToSquareWave.y,clockToSquareWave.y2,clockToSquareWave.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(clockToSquareWave.y2),sample.u,sample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time