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.001313/0.001313, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.00119/0.00119, allocations: 187 kB / 18.67 MB, free: 4.41 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 47.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2723, allocations: 49.43 MB / 401.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003013/0.2754, allocations: 1.593 MB / 403 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008767/0.2763, allocations: 494.6 kB / 403.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.943e-05/0.2764, allocations: 0 / 403.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.398e-05/0.2764, allocations: 3.938 kB / 403.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.2766, allocations: 15.86 kB / 403.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.2769, allocations: 59.75 kB / 403.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.277, allocations: 47.86 kB / 403.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.2771, allocations: 16.17 kB / 403.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.7e-05/0.2772, allocations: 27.84 kB / 403.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.2773, allocations: 23.86 kB / 403.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.2773, allocations: 0 / 403.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.422e-05/0.2773, allocations: 4 kB / 403.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.2774, allocations: 15.92 kB / 403.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.2775, allocations: 31.81 kB / 403.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.2776, allocations: 67.67 kB / 403.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2776, allocations: 0 / 403.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2776, allocations: 0 / 403.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.2776, allocations: 0 / 403.8 MB, free: 6.617 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.0005461/0.2782, allocations: 380.5 kB / 404.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2782, allocations: 8.031 kB / 404.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.2783, allocations: 12.78 kB / 404.2 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.2785, allocations: 207.2 kB / 404.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.2785, allocations: 4.375 kB / 404.4 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.2785, allocations: 4.375 kB / 404.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2788, allocations: 133.9 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.2788, allocations: 4 kB / 404.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.2789, allocations: 4 kB / 404.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2789, allocations: 0 / 404.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.376e-05/0.279, allocations: 23.92 kB / 404.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003509/0.2793, allocations: 278.6 kB / 404.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.2795, allocations: 160.9 kB / 405 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.623e-05/0.2796, allocations: 46.55 kB / 405 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2797, allocations: 0 / 405 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.2797, allocations: 42.56 kB / 405.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.2797, allocations: 0 / 405.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003555/0.2801, allocations: 93.5 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.2801, allocations: 114.7 kB / 405.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.2803, allocations: 142.1 kB / 405.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.2803, allocations: 33.95 kB / 405.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.631e-05/0.2804, allocations: 88.14 kB / 405.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.2804, allocations: 11.83 kB / 405.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.2805, allocations: 17.72 kB / 405.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2806, allocations: 322.8 kB / 405.9 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.97e-05/0.2807, allocations: 15.98 kB / 405.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/0.2808, allocations: 52.27 kB / 405.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.2809, allocations: 56.22 kB / 406 MB, free: 4.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.281, allocations: 0 / 406 MB, free: 4.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001609/0.2811, allocations: 97.45 kB / 406.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.2811, allocations: 11.11 kB / 406.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2812, allocations: 0 / 406.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2812, allocations: 4 kB / 406.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.142e-05/0.2812, allocations: 8 kB / 406.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2813, allocations: 0 / 406.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.118e-05/0.2813, allocations: 11.92 kB / 406.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.2813, allocations: 7.938 kB / 406.1 MB, free: 3.945 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.0001402/0.2815, allocations: 133.8 kB / 406.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.84e-05/0.2816, allocations: 53.59 kB / 406.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.628e-05/0.2816, allocations: 12.25 kB / 406.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2816, allocations: 0 / 406.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2816, allocations: 0 / 406.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2816, allocations: 7.984 kB / 406.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.2818, allocations: 173.6 kB / 406.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2818, allocations: 0 / 406.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.927e-05/0.2819, allocations: 19.92 kB / 406.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.2819, allocations: 0 / 406.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.2819, allocations: 4 kB / 406.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2819, allocations: 4 kB / 406.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2819, allocations: 0 / 406.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.2821, allocations: 185.1 kB / 406.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.817e-05/0.2822, allocations: 97.28 kB / 406.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.2822, allocations: 0 / 406.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.2823, allocations: 11.98 kB / 406.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.2824, allocations: 7.922 kB / 406.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-06/0.2824, allocations: 4 kB / 406.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.413e-05/0.2824, allocations: 109.8 kB / 406.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2825, allocations: 0 / 406.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.2827, allocations: 12 kB / 407 MB, free: 3.016 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.0001122/0.2828, allocations: 99.19 kB / 407.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001547/0.283, allocations: 51.91 kB / 407.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.283, allocations: 0 / 407.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.894e-05/0.283, allocations: 12 kB / 407.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2834, allocations: 34.52 kB / 407.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.2838, allocations: 215.2 kB / 407.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.2841, allocations: 0.7017 MB / 408.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.2842, allocations: 11.44 kB / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2842, allocations: 0 / 408.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of Templates: time 0.00252/0.2867, allocations: 0.8782 MB / 408.9 MB, free: 0.9531 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/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