Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007378/0.0007379, allocations: 88.47 kB / 292.2 MB, free: 10.93 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.3041/0.3041, allocations: 44.22 MB / 387.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.000303, allocations: 11.98 kB / 459.9 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3137, allocations: 61.89 MB / 0.5095 GB, free: 37.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.114/0.4277, allocations: 87.46 MB / 0.595 GB, free: 7.695 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.428, allocations: 67.97 kB / 0.595 GB, free: 7.629 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008782/0.4368, allocations: 2.958 MB / 0.5979 GB, free: 4.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4369, allocations: 0 / 0.5979 GB, free: 4.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.4369, allocations: 4 kB / 0.5979 GB, free: 4.668 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006379/0.4375, allocations: 426.9 kB / 0.5983 GB, free: 4.203 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4376, allocations: 8.031 kB / 0.5983 GB, free: 4.195 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.56e-05/0.4376, allocations: 15.91 kB / 0.5983 GB, free: 4.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.4379, allocations: 206.9 kB / 0.5985 GB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.438, allocations: 7.938 kB / 0.5985 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.438, allocations: 15.98 kB / 0.5986 GB, free: 3.914 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.4383, allocations: 109.6 kB / 0.5987 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4383, allocations: 0 / 0.5987 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.4383, allocations: 0 / 0.5987 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.4383, allocations: 4 kB / 0.5987 GB, free: 3.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.4385, allocations: 55.97 kB / 0.5987 GB, free: 3.742 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006127/0.4391, allocations: 388.4 kB / 0.5991 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.4395, allocations: 110.5 kB / 0.5992 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.4395, allocations: 0 / 0.5992 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002849/0.4398, allocations: 111.5 kB / 0.5993 GB, free: 3.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/0.4398, allocations: 0 / 0.5993 GB, free: 3.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004432/0.4402, allocations: 157.5 kB / 0.5995 GB, free: 2.914 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.4403, allocations: 51.41 kB / 0.5995 GB, free: 2.852 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.4404, allocations: 141.1 kB / 0.5996 GB, free: 2.707 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.4404, allocations: 37.69 kB / 0.5997 GB, free: 2.664 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.977e-05/0.4405, allocations: 96.23 kB / 0.5998 GB, free: 2.566 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.4405, allocations: 23.73 kB / 0.5998 GB, free: 2.543 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.4405, allocations: 0 / 0.5998 GB, free: 2.543 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4407, allocations: 322.8 kB / 0.6001 GB, free: 2.219 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.4408, allocations: 39.97 kB / 0.6001 GB, free: 2.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.4409, allocations: 57.69 kB / 0.6002 GB, free: 2.117 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.441, allocations: 36.11 kB / 0.6002 GB, free: 2.082 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.441, allocations: 4 kB / 0.6002 GB, free: 2.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000256/0.4413, allocations: 121.5 kB / 0.6003 GB, free: 1.953 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.4413, allocations: 4 kB / 0.6003 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.4413, allocations: 12.02 kB / 0.6004 GB, free: 1.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.4414, allocations: 0 / 0.6004 GB, free: 1.938 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.924e-05/0.4415, allocations: 19.94 kB / 0.6004 GB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.4415, allocations: 4 kB / 0.6004 GB, free: 1.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.097e-05/0.4416, allocations: 27.95 kB / 0.6004 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.4416, allocations: 0 / 0.6004 GB, free: 1.887 MB / 410.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 9.171e-05/0.4417, allocations: 129.7 kB / 0.6005 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.4417, allocations: 7.906 kB / 0.6005 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.402e-05/0.4418, allocations: 16.72 kB / 0.6006 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4418, allocations: 0 / 0.6006 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.4418, allocations: 0 / 0.6006 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4418, allocations: 0 / 0.6006 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.4423, allocations: 406.4 kB / 0.6009 GB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4423, allocations: 0 / 0.6009 GB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.385e-05/0.4424, allocations: 11.98 kB / 0.601 GB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.4424, allocations: 4 kB / 0.601 GB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.4424, allocations: 4 kB / 0.601 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4424, allocations: 0 / 0.601 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4424, allocations: 0 / 0.601 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.4428, allocations: 263.7 kB / 0.6012 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.4429, allocations: 92.95 kB / 0.6013 GB, free: 0.875 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.4429, allocations: 7.969 kB / 0.6013 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.4431, allocations: 28.05 kB / 0.6013 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.4431, allocations: 15.91 kB / 0.6014 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.4431, allocations: 8 kB / 0.6014 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.854e-05/0.4432, allocations: 109.9 kB / 0.6015 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4432, allocations: 0 / 0.6015 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.4435, allocations: 27.95 kB / 0.6015 GB, free: 0.6836 MB / 410.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.0001134/0.4436, allocations: 95.28 kB / 0.6016 GB, free: 0.582 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.4439, allocations: 95.95 kB / 0.6017 GB, free: 500 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4439, allocations: 0 / 0.6017 GB, free: 500 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.444, allocations: 52.03 kB / 0.6017 GB, free: 448 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.4442, allocations: 15.98 kB / 0.6017 GB, free: 432 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.4447, allocations: 241.3 kB / 0.602 GB, free: 160 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.445, allocations: 0.7004 MB / 0.6027 GB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.207e-05/0.4451, allocations: 16.55 kB / 0.6027 GB, free: 15.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.4451, allocations: 11.44 kB / 0.6027 GB, free: 15.4 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4451, allocations: 0 / 0.6027 GB, free: 15.4 MB / 426.7 MB Notification: Performance of Templates: time 0.0032/0.4483, allocations: 1.016 MB / 0.6037 GB, free: 14.39 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches