Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 198.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.16/1.16, allocations: 227.2 MB / 245 MB, free: 5.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008531/0.0008531, allocations: 94.5 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2756/0.2756, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002257/0.0002257, allocations: 8 kB / 468.4 MB, free: 7.723 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2478, allocations: 63.24 MB / 0.5192 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09349/0.3413, allocations: 88.51 MB / 0.6056 GB, free: 14.93 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.3415, allocations: 67.97 kB / 0.6057 GB, free: 14.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008749/0.3503, allocations: 3.019 MB / 0.6086 GB, free: 11.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3503, allocations: 0 / 0.6086 GB, free: 11.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.3503, allocations: 0 / 0.6086 GB, free: 11.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005936/0.3509, allocations: 439 kB / 0.609 GB, free: 11.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.351, allocations: 8.031 kB / 0.6091 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.276e-05/0.351, allocations: 11.91 kB / 0.6091 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.3513, allocations: 218.7 kB / 0.6093 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.3514, allocations: 8 kB / 0.6093 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.3514, allocations: 4 kB / 0.6093 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.3517, allocations: 115.8 kB / 0.6094 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.3517, allocations: 0 / 0.6094 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.3517, allocations: 0 / 0.6094 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3517, allocations: 4 kB / 0.6094 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.3519, allocations: 63.89 kB / 0.6095 GB, free: 10.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.3524, allocations: 384.4 kB / 0.6098 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.3528, allocations: 114.5 kB / 0.6099 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.278e-06/0.3528, allocations: 0 / 0.6099 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.3531, allocations: 111.5 kB / 0.61 GB, free: 10.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.3531, allocations: 0 / 0.61 GB, free: 10.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004385/0.3535, allocations: 157.5 kB / 0.6102 GB, free: 10.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.3536, allocations: 55.39 kB / 0.6102 GB, free: 10 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.3537, allocations: 144.3 kB / 0.6104 GB, free: 9.859 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3537, allocations: 25.7 kB / 0.6104 GB, free: 9.828 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.571e-05/0.3538, allocations: 100.2 kB / 0.6105 GB, free: 9.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3538, allocations: 23.88 kB / 0.6105 GB, free: 9.703 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-06/0.3538, allocations: 0 / 0.6105 GB, free: 9.703 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.504e-05/0.3539, allocations: 326.8 kB / 0.6108 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.354, allocations: 35.98 kB / 0.6109 GB, free: 9.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.3542, allocations: 53.69 kB / 0.6109 GB, free: 9.281 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.3543, allocations: 40.05 kB / 0.611 GB, free: 9.242 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.3543, allocations: 0 / 0.611 GB, free: 9.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002833/0.3546, allocations: 133.5 kB / 0.6111 GB, free: 9.105 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.3546, allocations: 4 kB / 0.6111 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3546, allocations: 4 kB / 0.6111 GB, free: 9.098 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3546, allocations: 7.953 kB / 0.6111 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.487e-05/0.3547, allocations: 15.98 kB / 0.6111 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3548, allocations: 4.031 kB / 0.6111 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.993e-05/0.3549, allocations: 27.89 kB / 0.6111 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.3549, allocations: 0 / 0.6111 GB, free: 9.043 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: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.028e-05/0.355, allocations: 121.8 kB / 0.6113 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.355, allocations: 7.906 kB / 0.6113 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.355, allocations: 12.72 kB / 0.6113 GB, free: 8.887 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.355, allocations: 19.92 kB / 0.6113 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3551, allocations: 0 / 0.6113 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.3551, allocations: 0 / 0.6113 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004661/0.3555, allocations: 390.5 kB / 0.6117 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3555, allocations: 4 kB / 0.6117 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.424e-05/0.3556, allocations: 15.92 kB / 0.6117 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3556, allocations: 7.891 kB / 0.6117 GB, free: 8.402 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3557, allocations: 4 kB / 0.6117 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3557, allocations: 0 / 0.6117 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3557, allocations: 0 / 0.6117 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004205/0.3561, allocations: 259.4 kB / 0.612 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.3562, allocations: 92.94 kB / 0.612 GB, free: 8.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.3562, allocations: 3.953 kB / 0.612 GB, free: 8.016 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.3563, allocations: 23.98 kB / 0.6121 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.3564, allocations: 15.97 kB / 0.6121 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.3564, allocations: 0 / 0.6121 GB, free: 7.977 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.009e-05/0.3565, allocations: 122.7 kB / 0.6122 GB, free: 7.859 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.243e-06/0.3565, allocations: 0 / 0.6122 GB, free: 7.859 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002188/0.3567, allocations: 19.94 kB / 0.6122 GB, free: 7.84 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: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001027/0.3568, allocations: 99.28 kB / 0.6123 GB, free: 7.734 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002683/0.3571, allocations: 91.94 kB / 0.6124 GB, free: 7.645 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3571, allocations: 0 / 0.6124 GB, free: 7.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.3572, allocations: 43.92 kB / 0.6124 GB, free: 7.602 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.3574, allocations: 20.05 kB / 0.6125 GB, free: 7.582 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004516/0.3579, allocations: 232.3 kB / 0.6127 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.3581, allocations: 0.7043 MB / 0.6134 GB, free: 6.598 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.362e-05/0.3582, allocations: 4.562 kB / 0.6134 GB, free: 6.594 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.03e-05/0.3582, allocations: 15.44 kB / 0.6134 GB, free: 6.582 MB / 426.7 MB Notification: Performance of SimCode: time 3.8e-07/0.3582, allocations: 0 / 0.6134 GB, free: 6.582 MB / 426.7 MB Notification: Performance of Templates: time 0.002919/0.3611, allocations: 1.025 MB / 0.6144 GB, free: 5.566 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches