Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 196.1 kB / 18.1 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 226.5 MB / 245.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.0008258, allocations: 101.5 kB / 297.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3817/0.3817, allocations: 44.82 MB / 394.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 12 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3493, allocations: 62.95 MB / 0.5184 GB, free: 37.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4822, allocations: 86.85 MB / 0.6032 GB, free: 2.488 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4825, allocations: 67.95 kB / 0.6033 GB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002568/0.485, allocations: 0.9898 MB / 0.6043 GB, free: 1.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4851, allocations: 0 / 0.6043 GB, free: 1.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.4851, allocations: 4 kB / 0.6043 GB, free: 1.426 MB / 410.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.0003432/0.4854, allocations: 339.5 kB / 0.6046 GB, free: 1.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4855, allocations: 8.031 kB / 0.6046 GB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.4855, allocations: 12.84 kB / 0.6046 GB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.4857, allocations: 184.4 kB / 0.6048 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.4857, allocations: 4.375 kB / 0.6048 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.4858, allocations: 8.312 kB / 0.6048 GB, free: 0.793 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.4859, allocations: 50.23 kB / 0.6048 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4859, allocations: 192 / 0.6048 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.4859, allocations: 7.938 kB / 0.6049 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.486, allocations: 7.984 kB / 0.6049 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.486, allocations: 8 kB / 0.6049 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.4865, allocations: 296.7 kB / 0.6051 GB, free: 384 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.259e-05/0.4866, allocations: 22.58 kB / 0.6052 GB, free: 352 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.4866, allocations: 8.859 kB / 0.6052 GB, free: 340 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-06/0.4866, allocations: 0 / 0.6052 GB, free: 340 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/0.4867, allocations: 59.41 kB / 0.6052 GB, free: 268 kB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.093e-06/0.4868, allocations: 0 / 0.6052 GB, free: 268 kB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001487/0.4869, allocations: 45.69 kB / 0.6053 GB, free: 216 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.487, allocations: 51.41 kB / 0.6053 GB, free: 152 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.73e-05/0.487, allocations: 121.8 kB / 0.6054 GB, free: 20 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.4871, allocations: 25.7 kB / 0.6055 GB, free: 15.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.4871, allocations: 95.98 kB / 0.6056 GB, free: 15.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.4872, allocations: 4.281 kB / 0.6056 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-06/0.4872, allocations: 0 / 0.6056 GB, free: 15.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4873, allocations: 326.8 kB / 0.6059 GB, free: 15.56 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.559e-05/0.4873, allocations: 4 kB / 0.6059 GB, free: 15.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.543e-05/0.4873, allocations: 25.59 kB / 0.6059 GB, free: 15.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.4874, allocations: 25.7 kB / 0.6059 GB, free: 15.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.4874, allocations: 0 / 0.6059 GB, free: 15.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.572e-05/0.4875, allocations: 53.64 kB / 0.606 GB, free: 15.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.4875, allocations: 12.03 kB / 0.606 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.4875, allocations: 3.984 kB / 0.606 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.4875, allocations: 0 / 0.606 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.137e-05/0.4875, allocations: 4 kB / 0.606 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.4876, allocations: 0 / 0.606 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.408e-05/0.4876, allocations: 7.906 kB / 0.606 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.4876, allocations: 3.938 kB / 0.606 GB, free: 15.4 MB / 426.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 () * Number of clocked 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 7.51e-05/0.4877, allocations: 113.8 kB / 0.6061 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/0.4877, allocations: 0 / 0.6061 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.4877, allocations: 15.89 kB / 0.6061 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.4877, allocations: 3.938 kB / 0.6061 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4878, allocations: 0 / 0.6061 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.4878, allocations: 336 / 0.6061 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.4881, allocations: 306.5 kB / 0.6064 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.4881, allocations: 4 kB / 0.6064 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.038e-05/0.4881, allocations: 3.984 kB / 0.6064 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4881, allocations: 0 / 0.6064 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.4881, allocations: 4 kB / 0.6064 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.4881, allocations: 7.938 kB / 0.6064 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4881, allocations: 0 / 0.6064 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.4883, allocations: 151.4 kB / 0.6066 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.4883, allocations: 81.02 kB / 0.6067 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.4884, allocations: 4.031 kB / 0.6067 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.686e-05/0.4884, allocations: 7.922 kB / 0.6067 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.4885, allocations: 0 / 0.6067 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.4885, allocations: 4.062 kB / 0.6067 GB, free: 14.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.839e-05/0.4885, allocations: 95.27 kB / 0.6068 GB, free: 14.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4885, allocations: 0 / 0.6068 GB, free: 14.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000218/0.4888, allocations: 8 kB / 0.6068 GB, free: 14.5 MB / 426.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 () * Number of clocked 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.0001188/0.4889, allocations: 91.53 kB / 0.6069 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 7.907e-05/0.489, allocations: 23.92 kB / 0.6069 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.489, allocations: 3.938 kB / 0.6069 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.628e-05/0.489, allocations: 8 kB / 0.6069 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.4893, allocations: 12.14 kB / 0.6069 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.4896, allocations: 148.9 kB / 0.6071 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.4898, allocations: 0.6809 MB / 0.6077 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.289e-05/0.4898, allocations: 4 kB / 0.6077 GB, free: 13.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.4899, allocations: 7.438 kB / 0.6077 GB, free: 13.46 MB / 426.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4899, allocations: 0 / 0.6077 GB, free: 13.46 MB / 426.7 MB Notification: Performance of Templates: time 0.002429/0.4923, allocations: 465.1 kB / 0.6082 GB, free: 13.01 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches