Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009464/0.0009464, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008543/0.0008542, allocations: 82.64 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1798/0.1798, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.079e-05/2.081e-05, allocations: 8 kB / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09935/0.09939, allocations: 58.85 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3748/0.4742, allocations: 84.14 MB / 0.5481 GB, free: 8.988 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.4745, allocations: 65.64 kB / 0.5481 GB, free: 8.988 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002134/0.4766, allocations: 0.9863 MB / 0.5491 GB, free: 8.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4766, allocations: 0 / 0.5491 GB, free: 8.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.4766, allocations: 3.938 kB / 0.5491 GB, free: 8.629 MB / 362.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.0002361/0.4769, allocations: 335.6 kB / 0.5494 GB, free: 8.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.4769, allocations: 7.719 kB / 0.5494 GB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.477, allocations: 7.625 kB / 0.5494 GB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.4771, allocations: 181.4 kB / 0.5496 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.4771, allocations: 3.906 kB / 0.5496 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.4772, allocations: 0 / 0.5496 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.564e-05/0.4772, allocations: 14.75 kB / 0.5496 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.303e-05/0.4773, allocations: 43.45 kB / 0.5497 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4773, allocations: 0 / 0.5497 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.4774, allocations: 0 / 0.5497 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.4774, allocations: 0 / 0.5497 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004386/0.4778, allocations: 271.9 kB / 0.5499 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.026e-05/0.4779, allocations: 21.39 kB / 0.55 GB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.4779, allocations: 11.92 kB / 0.55 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.4779, allocations: 0 / 0.55 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.493e-05/0.478, allocations: 48.3 kB / 0.55 GB, free: 7.715 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.478, allocations: 4 kB / 0.55 GB, free: 7.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001272/0.4781, allocations: 43.72 kB / 0.5501 GB, free: 7.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.4782, allocations: 55.36 kB / 0.5501 GB, free: 7.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.491e-05/0.4782, allocations: 107 kB / 0.5502 GB, free: 7.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.848e-06/0.4783, allocations: 25.7 kB / 0.5502 GB, free: 7.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.542e-05/0.4783, allocations: 94.25 kB / 0.5503 GB, free: 7.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.4783, allocations: 3.906 kB / 0.5503 GB, free: 7.395 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.4783, allocations: 0 / 0.5503 GB, free: 7.395 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.4784, allocations: 321.6 kB / 0.5506 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.4784, allocations: 7.125 kB / 0.5507 GB, free: 7.078 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.233e-05/0.4784, allocations: 16.97 kB / 0.5507 GB, free: 7.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.962e-05/0.4784, allocations: 13.41 kB / 0.5507 GB, free: 7.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.4784, allocations: 0 / 0.5507 GB, free: 7.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.648e-05/0.4785, allocations: 51.8 kB / 0.5507 GB, free: 7.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.4785, allocations: 3.875 kB / 0.5507 GB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4785, allocations: 3.984 kB / 0.5507 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4786, allocations: 7.844 kB / 0.5507 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.909e-05/0.4786, allocations: 0 / 0.5507 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.4786, allocations: 6.922 kB / 0.5508 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.77e-05/0.4787, allocations: 7.891 kB / 0.5508 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.4787, allocations: 0 / 0.5508 GB, free: 7.008 MB / 362.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 4.673e-05/0.4787, allocations: 104.9 kB / 0.5509 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.4787, allocations: 0 / 0.5509 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.4788, allocations: 11.22 kB / 0.5509 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4788, allocations: 0 / 0.5509 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4788, allocations: 7.938 kB / 0.5509 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.4788, allocations: 3.328 kB / 0.5509 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.479, allocations: 276.6 kB / 0.5511 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.479, allocations: 0 / 0.5511 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.479, allocations: 3.938 kB / 0.5511 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4791, allocations: 0 / 0.5511 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.4791, allocations: 0 / 0.5511 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.4791, allocations: 3.844 kB / 0.5512 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4791, allocations: 0 / 0.5512 GB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.4792, allocations: 149.4 kB / 0.5513 GB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.998e-05/0.4793, allocations: 79.45 kB / 0.5514 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.4793, allocations: 0 / 0.5514 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.4793, allocations: 5.156 kB / 0.5514 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.4794, allocations: 2.938 kB / 0.5514 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.4794, allocations: 0 / 0.5514 GB, free: 6.383 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.044e-05/0.4794, allocations: 90.53 kB / 0.5515 GB, free: 6.305 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4794, allocations: 64 / 0.5515 GB, free: 6.305 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002348/0.4797, allocations: 15.7 kB / 0.5515 GB, free: 6.293 MB / 362.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.0001018/0.4798, allocations: 97.34 kB / 0.5516 GB, free: 6.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.604e-05/0.4798, allocations: 15 kB / 0.5516 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4799, allocations: 0 / 0.5516 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.464e-05/0.4799, allocations: 11.06 kB / 0.5516 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.4801, allocations: 6.344 kB / 0.5516 GB, free: 6.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.4803, allocations: 84.52 kB / 0.5517 GB, free: 6.125 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.4805, allocations: 0.6923 MB / 0.5524 GB, free: 5.422 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.931e-05/0.4805, allocations: 3.781 kB / 0.5524 GB, free: 5.422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.886e-05/0.4805, allocations: 7.438 kB / 0.5524 GB, free: 5.414 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4805, allocations: 3.906 kB / 0.5524 GB, free: 5.414 MB / 362.7 MB Notification: Performance of Templates: time 0.002041/0.4826, allocations: 407.5 kB / 0.5528 GB, free: 5.324 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches