Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 108.5 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 192 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 55.91 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4653/0.4664, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.005309/0.4718, allocations: 1.597 MB / 402.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.4731, allocations: 482.7 kB / 402.8 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.4733, allocations: 7.938 kB / 402.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.374e-05/0.4734, allocations: 3.938 kB / 402.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.4736, allocations: 11.91 kB / 402.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003892/0.474, allocations: 59.77 kB / 402.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.4742, allocations: 59.72 kB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.4743, allocations: 12.19 kB / 403 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.932e-05/0.4744, allocations: 23.91 kB / 403 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.35e-05/0.4745, allocations: 19.86 kB / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.4745, allocations: 4 kB / 403 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.4745, allocations: 4 kB / 403 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.4746, allocations: 19.92 kB / 403 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.436e-05/0.4747, allocations: 35.8 kB / 403.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.4748, allocations: 63.67 kB / 403.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4749, allocations: 0 / 403.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4749, allocations: 0 / 403.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4749, allocations: 0 / 403.1 MB, free: 6.488 MB / 318.1 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.0006311/0.4755, allocations: 380.3 kB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.4756, allocations: 11.89 kB / 403.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.4756, allocations: 12.84 kB / 403.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.476, allocations: 204.1 kB / 403.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.476, allocations: 4.375 kB / 403.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.476, allocations: 384 / 403.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.4763, allocations: 141.9 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.4764, allocations: 4 kB / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.4764, allocations: 0 / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.4764, allocations: 4 kB / 403.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.307e-05/0.4765, allocations: 27.91 kB / 403.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004194/0.4769, allocations: 274.6 kB / 404.2 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.4772, allocations: 160.8 kB / 404.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.462e-05/0.4773, allocations: 42.69 kB / 404.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.4773, allocations: 4 kB / 404.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.4774, allocations: 42.5 kB / 404.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.4774, allocations: 0 / 404.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003242/0.4777, allocations: 93.5 kB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/0.4778, allocations: 106.7 kB / 404.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.478, allocations: 146.1 kB / 404.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.478, allocations: 29.95 kB / 404.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.4781, allocations: 88.12 kB / 404.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.4781, allocations: 11.84 kB / 404.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.4781, allocations: 21.72 kB / 404.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4783, allocations: 322.8 kB / 405.2 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.503e-05/0.4783, allocations: 19.97 kB / 405.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.155e-05/0.4784, allocations: 48.22 kB / 405.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.4785, allocations: 60.22 kB / 405.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4785, allocations: 0 / 405.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000168/0.4787, allocations: 93.45 kB / 405.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4787, allocations: 8 kB / 405.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.4788, allocations: 0 / 405.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.4788, allocations: 4 kB / 405.4 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.519e-05/0.4789, allocations: 15.92 kB / 405.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.4789, allocations: 0 / 405.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.094e-05/0.4789, allocations: 4 kB / 405.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.479, allocations: 3.938 kB / 405.5 MB, free: 3.82 MB / 318.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.4791, allocations: 137.8 kB / 405.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.4792, allocations: 53.78 kB / 405.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.705e-05/0.4792, allocations: 16.28 kB / 405.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4792, allocations: 3.984 kB / 405.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4793, allocations: 0 / 405.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4793, allocations: 0 / 405.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.4795, allocations: 177.6 kB / 405.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4795, allocations: 4 kB / 405.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-05/0.4795, allocations: 4 kB / 405.8 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.4796, allocations: 4 kB / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.4796, allocations: 11.98 kB / 405.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4796, allocations: 0 / 405.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4796, allocations: 8 kB / 405.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.4798, allocations: 185 kB / 406 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.992e-05/0.4799, allocations: 93 kB / 406.1 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.4799, allocations: 8 kB / 406.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.723e-05/0.48, allocations: 0 / 406.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.4801, allocations: 4 kB / 406.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.4801, allocations: 3.984 kB / 406.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.857e-05/0.4802, allocations: 114 kB / 406.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4802, allocations: 0 / 406.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.4804, allocations: 8 kB / 406.3 MB, free: 2.891 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001293/0.4805, allocations: 107.1 kB / 406.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.4807, allocations: 47.92 kB / 406.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4807, allocations: 0 / 406.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.727e-05/0.4808, allocations: 19.92 kB / 406.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.4812, allocations: 27.95 kB / 406.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004068/0.4816, allocations: 185.4 kB / 406.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.4819, allocations: 0.7 MB / 407.4 MB, free: 1.742 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.229e-05/0.4819, allocations: 7.984 kB / 407.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.482, allocations: 11.44 kB / 407.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.482, allocations: 4 kB / 407.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of Templates: time 0.003394/0.4854, allocations: 0.6381 MB / 408 MB, free: 1.098 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches