Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001322/0.001322, allocations: 176.9 kB / 17.41 MB, free: 4.379 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.478/1.478, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0008024/0.0008022, allocations: 95.91 kB / 271.9 MB, free: 8.246 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.3393/0.3393, allocations: 43.56 MB / 363.8 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003627, allocations: 19.98 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1061, allocations: 58.85 MB / 491.4 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2907/0.3969, allocations: 86.48 MB / 0.5644 GB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.3972, allocations: 63.95 kB / 0.5644 GB, free: 15.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008513/0.4057, allocations: 2.91 MB / 0.5673 GB, free: 12.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4057, allocations: 0 / 0.5673 GB, free: 12.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.4058, allocations: 4 kB / 0.5673 GB, free: 12.84 MB / 394.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.0006805/0.4065, allocations: 438.8 kB / 0.5677 GB, free: 12.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4065, allocations: 8.031 kB / 0.5677 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.4066, allocations: 12.84 kB / 0.5677 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.4069, allocations: 220.7 kB / 0.5679 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.4069, allocations: 4.375 kB / 0.5679 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.4069, allocations: 8.375 kB / 0.5679 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.4072, allocations: 112.9 kB / 0.5681 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.4072, allocations: 192 / 0.5681 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.4073, allocations: 7.938 kB / 0.5681 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.4073, allocations: 4 kB / 0.5681 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000164/0.4074, allocations: 57.12 kB / 0.5681 GB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006189/0.4081, allocations: 380.6 kB / 0.5685 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.4084, allocations: 118.5 kB / 0.5686 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.4085, allocations: 40.88 kB / 0.5686 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.4086, allocations: 4 kB / 0.5686 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.4088, allocations: 103.3 kB / 0.5687 GB, free: 11.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.4088, allocations: 0 / 0.5687 GB, free: 11.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004448/0.4093, allocations: 162.1 kB / 0.5689 GB, free: 11.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.4093, allocations: 55.41 kB / 0.5689 GB, free: 10.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.4095, allocations: 153.7 kB / 0.5691 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.4095, allocations: 29.7 kB / 0.5691 GB, free: 10.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.248e-05/0.4096, allocations: 96.05 kB / 0.5692 GB, free: 10.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.4096, allocations: 19.8 kB / 0.5692 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.4096, allocations: 6.719 kB / 0.5692 GB, free: 10.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4098, allocations: 322.8 kB / 0.5695 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.4099, allocations: 35.98 kB / 0.5696 GB, free: 10.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.41, allocations: 61.56 kB / 0.5696 GB, free: 10.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.4102, allocations: 81.67 kB / 0.5697 GB, free: 10.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4102, allocations: 0 / 0.5697 GB, free: 10.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002776/0.4105, allocations: 129.5 kB / 0.5698 GB, free: 10.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.4106, allocations: 4.844 kB / 0.5698 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4106, allocations: 0 / 0.5698 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.4106, allocations: 7.938 kB / 0.5699 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.917e-05/0.4107, allocations: 23.95 kB / 0.5699 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.4107, allocations: 0 / 0.5699 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.584e-05/0.4108, allocations: 23.98 kB / 0.5699 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.4108, allocations: 0 / 0.5699 GB, free: 9.949 MB / 394.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 0.0001009/0.4109, allocations: 117.8 kB / 0.57 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.4109, allocations: 11.81 kB / 0.57 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.411, allocations: 28.3 kB / 0.57 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.411, allocations: 4 kB / 0.5701 GB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.411, allocations: 0 / 0.5701 GB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.411, allocations: 3.938 kB / 0.5701 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000519/0.4115, allocations: 406.2 kB / 0.5704 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4116, allocations: 4 kB / 0.5704 GB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.219e-05/0.4116, allocations: 11.98 kB / 0.5705 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.4117, allocations: 0 / 0.5705 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.4117, allocations: 4 kB / 0.5705 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.4117, allocations: 0 / 0.5705 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4117, allocations: 0 / 0.5705 GB, free: 9.316 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.4121, allocations: 271.2 kB / 0.5707 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.4122, allocations: 85.05 kB / 0.5708 GB, free: 8.934 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.4122, allocations: 4 kB / 0.5708 GB, free: 8.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.4124, allocations: 23.97 kB / 0.5708 GB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.4125, allocations: 11.98 kB / 0.5708 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.4125, allocations: 4.062 kB / 0.5708 GB, free: 8.891 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.4125, allocations: 115.2 kB / 0.571 GB, free: 8.777 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4126, allocations: 0 / 0.571 GB, free: 8.777 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002294/0.4128, allocations: 16 kB / 0.571 GB, free: 8.762 MB / 394.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.0001262/0.4129, allocations: 103.2 kB / 0.5711 GB, free: 8.648 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002769/0.4132, allocations: 95.83 kB / 0.5712 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4132, allocations: 0 / 0.5712 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.4134, allocations: 43.98 kB / 0.5712 GB, free: 8.512 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.4137, allocations: 23.98 kB / 0.5712 GB, free: 8.488 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.4142, allocations: 277.2 kB / 0.5715 GB, free: 8.191 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.4145, allocations: 0.7003 MB / 0.5722 GB, free: 7.465 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.4146, allocations: 15.44 kB / 0.5722 GB, free: 7.453 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4146, allocations: 0 / 0.5722 GB, free: 7.453 MB / 394.7 MB Notification: Performance of Templates: time 0.002536/0.4171, allocations: 1.327 MB / 0.5735 GB, free: 6.133 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches