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.001188/0.001188, allocations: 182.7 kB / 13.19 MB, free: 2.129 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.326/1.326, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0007701/0.0007701, allocations: 90.59 kB / 267.1 MB, free: 9.266 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.348/0.348, allocations: 43.47 MB / 358.6 MB, free: 52.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/3.308e-05, allocations: 4 kB / 425.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 58.84 MB / 484.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3736/0.4948, allocations: 84.8 MB / 0.5556 GB, free: 4.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.495, allocations: 67.25 kB / 0.5557 GB, free: 4.168 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002295/0.4973, allocations: 0.9981 MB / 0.5566 GB, free: 3.188 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4974, allocations: 0 / 0.5566 GB, free: 3.188 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.4974, allocations: 4 kB / 0.5566 GB, free: 3.184 MB / 378.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.0002332/0.4976, allocations: 336.5 kB / 0.557 GB, free: 2.812 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.4977, allocations: 8.031 kB / 0.557 GB, free: 2.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.4977, allocations: 12.73 kB / 0.557 GB, free: 2.797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.4978, allocations: 167.1 kB / 0.5571 GB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.4979, allocations: 4 kB / 0.5571 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.4979, allocations: 4 kB / 0.5571 GB, free: 2.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.498, allocations: 53.67 kB / 0.5572 GB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.498, allocations: 0 / 0.5572 GB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.498, allocations: 3.938 kB / 0.5572 GB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.4981, allocations: 9.547 kB / 0.5572 GB, free: 2.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.886e-05/0.4981, allocations: 12 kB / 0.5572 GB, free: 2.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.4985, allocations: 284.8 kB / 0.5575 GB, free: 2.176 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.4986, allocations: 26.52 kB / 0.5575 GB, free: 2.141 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.4986, allocations: 15.42 kB / 0.5575 GB, free: 2.125 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.4986, allocations: 4 kB / 0.5575 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.664e-05/0.4987, allocations: 47.41 kB / 0.5576 GB, free: 2.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.4987, allocations: 5.312 kB / 0.5576 GB, free: 2.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.000119/0.4989, allocations: 49.55 kB / 0.5576 GB, free: 2.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.4989, allocations: 55.34 kB / 0.5577 GB, free: 1.938 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/0.499, allocations: 105.8 kB / 0.5578 GB, free: 1.824 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.499, allocations: 25.7 kB / 0.5578 GB, free: 1.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.694e-05/0.499, allocations: 95.19 kB / 0.5579 GB, free: 1.699 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.499, allocations: 15.84 kB / 0.5579 GB, free: 1.684 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-06/0.499, allocations: 0 / 0.5579 GB, free: 1.684 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.4991, allocations: 310.8 kB / 0.5582 GB, free: 1.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.393e-05/0.4991, allocations: 8.375 kB / 0.5582 GB, free: 1.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.918e-05/0.4991, allocations: 21.7 kB / 0.5582 GB, free: 1.336 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.698e-05/0.4992, allocations: 4 kB / 0.5583 GB, free: 1.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4992, allocations: 4 kB / 0.5583 GB, free: 1.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.08e-05/0.4992, allocations: 61.61 kB / 0.5583 GB, free: 1.262 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.4993, allocations: 8 kB / 0.5583 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4993, allocations: 48 / 0.5583 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4993, allocations: 3.984 kB / 0.5583 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.931e-05/0.4993, allocations: 4 kB / 0.5583 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.4993, allocations: 3.953 kB / 0.5583 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.4994, allocations: 4 kB / 0.5583 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.4994, allocations: 0.7031 kB / 0.5583 GB, free: 1.238 MB / 378.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.33e-05/0.4994, allocations: 112.2 kB / 0.5584 GB, free: 1.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-06/0.4994, allocations: 4 kB / 0.5584 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.4995, allocations: 8.016 kB / 0.5585 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4995, allocations: 0 / 0.5585 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4995, allocations: 7.938 kB / 0.5585 GB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.4995, allocations: 3.953 kB / 0.5585 GB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.4997, allocations: 298.5 kB / 0.5588 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4997, allocations: 3.312 kB / 0.5588 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.4997, allocations: 8 kB / 0.5588 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4998, allocations: 0 / 0.5588 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.4998, allocations: 0 / 0.5588 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.4998, allocations: 7.953 kB / 0.5588 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4998, allocations: 0.6562 kB / 0.5588 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.4999, allocations: 147.5 kB / 0.5589 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.225e-05/0.4999, allocations: 81.02 kB / 0.559 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.4999, allocations: 4.031 kB / 0.559 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-05/0.5, allocations: 8.047 kB / 0.559 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.5, allocations: 3.953 kB / 0.559 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.5001, allocations: 7.5 kB / 0.559 GB, free: 468 kB / 378.7 MB Notification: Performance of sorting global known variables: time 2.777e-05/0.5001, allocations: 87.28 kB / 0.5591 GB, free: 380 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5001, allocations: 0 / 0.5591 GB, free: 380 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002057/0.5003, allocations: 8 kB / 0.5591 GB, free: 372 kB / 378.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 9.16e-05/0.5004, allocations: 99.23 kB / 0.5592 GB, free: 264 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.886e-05/0.5005, allocations: 20.22 kB / 0.5592 GB, free: 244 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.5005, allocations: 4.062 kB / 0.5592 GB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.529e-05/0.5005, allocations: 4 kB / 0.5592 GB, free: 236 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.5007, allocations: 16.7 kB / 0.5592 GB, free: 220 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002083/0.5009, allocations: 87.53 kB / 0.5593 GB, free: 116 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.5012, allocations: 0.6887 MB / 0.56 GB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.093e-05/0.5012, allocations: 2.25 kB / 0.56 GB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.492e-05/0.5012, allocations: 11.44 kB / 0.56 GB, free: 15.39 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5012, allocations: 0 / 0.56 GB, free: 15.39 MB / 394.7 MB Notification: Performance of Templates: time 0.002281/0.5035, allocations: 477.4 kB / 0.5605 GB, free: 14.93 MB / 394.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