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.001428/0.001428, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.894/1.894, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001123/0.001122, allocations: 94.91 kB / 270.9 MB, free: 8.387 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.5198/0.5198, allocations: 43.55 MB / 362.7 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004824, allocations: 12 kB / 431.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1245, allocations: 58.85 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4619/0.5865, allocations: 86.44 MB / 0.5631 GB, free: 328 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.5868, allocations: 67.97 kB / 0.5632 GB, free: 260 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01515/0.6019, allocations: 2.906 MB / 0.566 GB, free: 13.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.729e-06/0.602, allocations: 8 kB / 0.566 GB, free: 13.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.602, allocations: 4 kB / 0.5661 GB, free: 13.36 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.001014/0.6031, allocations: 438.6 kB / 0.5665 GB, free: 12.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.6031, allocations: 8.031 kB / 0.5665 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.859e-05/0.6032, allocations: 7.906 kB / 0.5665 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.6036, allocations: 214.3 kB / 0.5667 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.6037, allocations: 11.94 kB / 0.5667 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.6037, allocations: 8 kB / 0.5667 GB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.6042, allocations: 113.6 kB / 0.5668 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.6043, allocations: 0 / 0.5668 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.6043, allocations: 0 / 0.5668 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.6043, allocations: 0 / 0.5668 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.6046, allocations: 64.52 kB / 0.5669 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000957/0.6056, allocations: 384.6 kB / 0.5672 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006219/0.6062, allocations: 110.5 kB / 0.5674 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.6063, allocations: 3.938 kB / 0.5674 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004605/0.6067, allocations: 107.5 kB / 0.5675 GB, free: 11.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 3.106e-06/0.6068, allocations: 0 / 0.5675 GB, free: 11.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008144/0.6076, allocations: 157.6 kB / 0.5676 GB, free: 11.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.6077, allocations: 59.41 kB / 0.5677 GB, free: 11.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.6079, allocations: 133.5 kB / 0.5678 GB, free: 11.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.6079, allocations: 25.7 kB / 0.5678 GB, free: 11.37 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.534e-05/0.608, allocations: 170.6 kB / 0.568 GB, free: 11.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.6081, allocations: 23.8 kB / 0.568 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.6081, allocations: 4 kB / 0.568 GB, free: 11.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.6083, allocations: 310.8 kB / 0.5683 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.6085, allocations: 39.97 kB / 0.5683 GB, free: 10.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.6088, allocations: 56.42 kB / 0.5684 GB, free: 10.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.609, allocations: 39.91 kB / 0.5684 GB, free: 10.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.609, allocations: 0 / 0.5684 GB, free: 10.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005334/0.6095, allocations: 125.5 kB / 0.5686 GB, free: 10.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.6096, allocations: 4 kB / 0.5686 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.6096, allocations: 0 / 0.5686 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.6096, allocations: 7.953 kB / 0.5686 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.6098, allocations: 25.95 kB / 0.5686 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.6099, allocations: 0 / 0.5686 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.6101, allocations: 23.98 kB / 0.5686 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.6101, allocations: 0 / 0.5686 GB, free: 10.54 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.0001496/0.6102, allocations: 121.8 kB / 0.5687 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.6103, allocations: 11.91 kB / 0.5687 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.6103, allocations: 12.7 kB / 0.5687 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.6104, allocations: 7.953 kB / 0.5688 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.6104, allocations: 0 / 0.5688 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.6104, allocations: 0 / 0.5688 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009103/0.6113, allocations: 407.1 kB / 0.5691 GB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.6114, allocations: 4 kB / 0.5691 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.6115, allocations: 11.98 kB / 0.5692 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.6115, allocations: 3.953 kB / 0.5692 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.6116, allocations: 4 kB / 0.5692 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.6116, allocations: 3.984 kB / 0.5692 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6116, allocations: 4 kB / 0.5692 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008312/0.6124, allocations: 264.5 kB / 0.5694 GB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.6125, allocations: 85.33 kB / 0.5695 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.6126, allocations: 3.953 kB / 0.5695 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000248/0.6128, allocations: 27.97 kB / 0.5695 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.6129, allocations: 19.98 kB / 0.5696 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.6129, allocations: 3.984 kB / 0.5696 GB, free: 9.465 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.6131, allocations: 111.8 kB / 0.5697 GB, free: 9.355 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6131, allocations: 0 / 0.5697 GB, free: 9.355 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003251/0.6134, allocations: 16 kB / 0.5697 GB, free: 9.34 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.0001622/0.6136, allocations: 99.23 kB / 0.5698 GB, free: 9.234 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005087/0.6141, allocations: 91.89 kB / 0.5699 GB, free: 9.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6141, allocations: 3.938 kB / 0.5699 GB, free: 9.141 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.6144, allocations: 53.44 kB / 0.5699 GB, free: 9.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.6147, allocations: 12 kB / 0.5699 GB, free: 9.078 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007414/0.6155, allocations: 269.3 kB / 0.5702 GB, free: 8.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.6158, allocations: 0.7042 MB / 0.5709 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.6159, allocations: 15.44 kB / 0.5709 GB, free: 8.043 MB / 394.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6159, allocations: 0 / 0.5709 GB, free: 8.043 MB / 394.7 MB Notification: Performance of Templates: time 0.003759/0.6197, allocations: 1.308 MB / 0.5722 GB, free: 6.742 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