Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008732/0.0008731, allocations: 170.4 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.5 MB / 230.7 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009867/0.0009868, allocations: 102.8 kB / 281.6 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1809/0.1809, allocations: 44.16 MB / 376.5 MB, free: 3.008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.302e-05/1.304e-05, allocations: 4 kB / 444.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 61.92 MB / 0.4947 GB, free: 1.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4141/0.5412, allocations: 85.21 MB / 0.5779 GB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/0.5416, allocations: 59.97 kB / 0.5779 GB, free: 11.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003295/0.5449, allocations: 0.9885 MB / 0.5789 GB, free: 10.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.545, allocations: 4 kB / 0.5789 GB, free: 10.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.545, allocations: 0 / 0.5789 GB, free: 10.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004088/0.5454, allocations: 338.3 kB / 0.5792 GB, free: 9.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.5455, allocations: 11.98 kB / 0.5792 GB, free: 9.828 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.5455, allocations: 7.906 kB / 0.5792 GB, free: 9.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.5458, allocations: 171 kB / 0.5794 GB, free: 9.613 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.5458, allocations: 4 kB / 0.5794 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.5458, allocations: 0 / 0.5794 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.767e-05/0.5459, allocations: 16.89 kB / 0.5794 GB, free: 9.594 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.546, allocations: 49.69 kB / 0.5795 GB, free: 9.539 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.5461, allocations: 3.984 kB / 0.5795 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.5461, allocations: 0 / 0.5795 GB, free: 9.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.5461, allocations: 3.938 kB / 0.5795 GB, free: 9.531 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.5467, allocations: 261.3 kB / 0.5797 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.889e-05/0.5467, allocations: 26.58 kB / 0.5798 GB, free: 9.203 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.5468, allocations: 8.922 kB / 0.5798 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.5468, allocations: 0 / 0.5798 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.151e-05/0.5469, allocations: 51.36 kB / 0.5798 GB, free: 9.129 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.5469, allocations: 0 / 0.5798 GB, free: 9.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001393/0.547, allocations: 41.69 kB / 0.5799 GB, free: 9.082 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.5471, allocations: 54.25 kB / 0.5799 GB, free: 9.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.942e-05/0.5472, allocations: 106.4 kB / 0.58 GB, free: 8.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.5472, allocations: 25.7 kB / 0.58 GB, free: 8.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.5473, allocations: 95.98 kB / 0.5801 GB, free: 8.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.5473, allocations: 3.906 kB / 0.5801 GB, free: 8.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.5473, allocations: 0 / 0.5801 GB, free: 8.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.5474, allocations: 318.8 kB / 0.5804 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.822e-05/0.5475, allocations: 4 kB / 0.5804 GB, free: 8.453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.029e-05/0.5475, allocations: 21.66 kB / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.338e-05/0.5475, allocations: 15.89 kB / 0.5805 GB, free: 8.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.5476, allocations: 0 / 0.5805 GB, free: 8.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001084/0.5477, allocations: 53.59 kB / 0.5805 GB, free: 8.352 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.5477, allocations: 4 kB / 0.5805 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5477, allocations: 1.375 kB / 0.5805 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.5477, allocations: 0 / 0.5805 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.694e-05/0.5478, allocations: 4 kB / 0.5805 GB, free: 8.344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.5478, allocations: 3.938 kB / 0.5805 GB, free: 8.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.031e-05/0.5478, allocations: 12.02 kB / 0.5805 GB, free: 8.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.5479, allocations: 320 / 0.5805 GB, free: 8.328 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.822e-05/0.548, allocations: 104.9 kB / 0.5806 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.548, allocations: 4 kB / 0.5806 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.548, allocations: 8.344 kB / 0.5807 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.548, allocations: 0 / 0.5807 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.548, allocations: 4 kB / 0.5807 GB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.548, allocations: 0 / 0.5807 GB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.5484, allocations: 283.3 kB / 0.5809 GB, free: 7.883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5484, allocations: 224 / 0.5809 GB, free: 7.883 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.5484, allocations: 7.938 kB / 0.5809 GB, free: 7.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.5484, allocations: 7.969 kB / 0.5809 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.5485, allocations: 0 / 0.5809 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.5485, allocations: 0 / 0.5809 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5485, allocations: 0 / 0.5809 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.5487, allocations: 151.4 kB / 0.5811 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.5487, allocations: 81.17 kB / 0.5812 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.5487, allocations: 0 / 0.5812 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.5488, allocations: 4.031 kB / 0.5812 GB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.5489, allocations: 3.984 kB / 0.5812 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/0.5489, allocations: 0 / 0.5812 GB, free: 7.598 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.049e-05/0.5489, allocations: 91.27 kB / 0.5813 GB, free: 7.508 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.549, allocations: 0 / 0.5813 GB, free: 7.508 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003629/0.5493, allocations: 8 kB / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001257/0.5495, allocations: 95.23 kB / 0.5814 GB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.82e-05/0.5496, allocations: 23.94 kB / 0.5814 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5496, allocations: 0 / 0.5814 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.84e-05/0.5496, allocations: 4 kB / 0.5814 GB, free: 7.371 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.5499, allocations: 11.95 kB / 0.5814 GB, free: 7.359 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.5502, allocations: 89.8 kB / 0.5815 GB, free: 7.242 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.5505, allocations: 0.6846 MB / 0.5822 GB, free: 6.531 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.813e-05/0.5505, allocations: 12.42 kB / 0.5822 GB, free: 6.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.851e-05/0.5505, allocations: 11.5 kB / 0.5822 GB, free: 6.508 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5505, allocations: 4 kB / 0.5822 GB, free: 6.504 MB / 394.7 MB Notification: Performance of Templates: time 0.002886/0.5534, allocations: 395.5 kB / 0.5826 GB, free: 6.121 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches