Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 91.33 kB / 20.42 MB, free: 4.141 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 165.3 kB / 23.79 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.011/1.011, allocations: 158.6 MB / 185.7 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1321/0.1321, allocations: 32.37 MB / 270.4 MB, free: 14.7 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 347.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.486e-05/2.628e-05, allocations: 8.281 kB / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002018/0.002045, allocations: 1.662 MB / 349.3 MB, free: 7.785 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007256/0.00277, allocations: 0.5774 MB / 349.9 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.002862, allocations: 4 kB / 349.9 MB, free: 7.195 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.002989, allocations: 15.86 kB / 349.9 MB, free: 7.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.355e-05/0.003042, allocations: 19.73 kB / 349.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.003335, allocations: 87.75 kB / 350 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001427/0.003478, allocations: 115.7 kB / 350.1 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.00359, allocations: 23.88 kB / 350.2 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.963e-05/0.00368, allocations: 67.89 kB / 350.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.785e-05/0.003748, allocations: 27.89 kB / 350.3 MB, free: 6.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.735e-05/0.003775, allocations: 11.94 kB / 350.3 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.541e-05/0.003791, allocations: 8 kB / 350.3 MB, free: 6.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.003818, allocations: 23.92 kB / 350.3 MB, free: 6.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.003862, allocations: 27.91 kB / 350.3 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.003987, allocations: 67.73 kB / 350.4 MB, free: 6.707 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.00399, allocations: 0 / 350.4 MB, free: 6.707 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003991, allocations: 0 / 350.4 MB, free: 6.707 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.003996, allocations: 0 / 350.4 MB, free: 6.707 MB / 282.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.0004665/0.004463, allocations: 455.9 kB / 350.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.004505, allocations: 8.031 kB / 350.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.004555, allocations: 12.89 kB / 350.9 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.004714, allocations: 148.4 kB / 351 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.004735, allocations: 4.375 kB / 351 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.00476, allocations: 12.33 kB / 351 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.004937, allocations: 97.03 kB / 351.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.004944, allocations: 192 / 351.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.004956, allocations: 4.359 kB / 351.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.004965, allocations: 7.875 kB / 351.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.028e-05/0.005015, allocations: 27.92 kB / 351.2 MB, free: 5.875 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.005417, allocations: 347.5 kB / 351.5 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.005523, allocations: 67.02 kB / 351.6 MB, free: 5.422 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.426e-05/0.005547, allocations: 15.72 kB / 351.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.005556, allocations: 0 / 351.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001018/0.005658, allocations: 73.05 kB / 351.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.113e-06/0.005659, allocations: 0 / 351.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001706/0.00583, allocations: 85.56 kB / 351.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.005858, allocations: 51.41 kB / 351.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.643e-05/0.005925, allocations: 194.4 kB / 352 MB, free: 4.957 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.784e-06/0.005932, allocations: 25.7 kB / 352 MB, free: 4.926 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.738e-05/0.00597, allocations: 155.1 kB / 352.1 MB, free: 4.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.005998, allocations: 19.89 kB / 352.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.006031, allocations: 35.36 kB / 352.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.006074, allocations: 0.4961 MB / 352.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.568e-05/0.0061, allocations: 8 kB / 352.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.933e-05/0.006129, allocations: 31.36 kB / 352.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.608e-05/0.006175, allocations: 43.31 kB / 352.8 MB, free: 4.102 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.006177, allocations: 0 / 352.8 MB, free: 4.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.923e-05/0.006266, allocations: 77.8 kB / 352.8 MB, free: 4.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.006279, allocations: 8 kB / 352.9 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.006284, allocations: 7.984 kB / 352.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.006296, allocations: 0 / 352.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-05/0.006376, allocations: 15.94 kB / 352.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.006382, allocations: 0 / 352.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.271e-05/0.006415, allocations: 11.94 kB / 352.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-06/0.006421, allocations: 4 kB / 352.9 MB, free: 3.973 MB / 282.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.006474, allocations: 167.5 kB / 353.1 MB, free: 3.801 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.006486, allocations: 11.95 kB / 353.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.006516, allocations: 20.77 kB / 353.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.006518, allocations: 0 / 353.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.006522, allocations: 0 / 353.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.006526, allocations: 3.938 kB / 353.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.006735, allocations: 341.6 kB / 353.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.006736, allocations: 4 kB / 353.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.00679, allocations: 11.98 kB / 353.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.006792, allocations: 0 / 353.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.006804, allocations: 8 kB / 353.5 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.006805, allocations: 4 kB / 353.5 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.006807, allocations: 0 / 353.5 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.006941, allocations: 235.8 kB / 353.7 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.104e-05/0.006952, allocations: 11.95 kB / 353.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.006966, allocations: 0 / 353.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.069e-05/0.007016, allocations: 11.98 kB / 353.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.007069, allocations: 19.91 kB / 353.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-06/0.007076, allocations: 4 kB / 353.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.098e-05/0.007107, allocations: 139.2 kB / 353.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007107, allocations: 32 / 353.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000141/0.007248, allocations: 23.95 kB / 353.9 MB, free: 2.91 MB / 282.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 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.617e-05/0.007315, allocations: 95.23 kB / 354 MB, free: 2.805 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001033/0.007418, allocations: 51.64 kB / 354 MB, free: 2.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.007419, allocations: 0 / 354 MB, free: 2.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.135e-05/0.007461, allocations: 31.67 kB / 354.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.007683, allocations: 19.92 kB / 354.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003773/0.00806, allocations: 229.1 kB / 354.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.087e-05/0.008091, allocations: 63.36 kB / 354.4 MB, free: 2.363 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.622e-05/0.008118, allocations: 4.734 kB / 354.4 MB, free: 2.359 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.816e-05/0.008156, allocations: 12.5 kB / 354.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of SimCode: time 1.293e-06/0.008157, allocations: 0 / 354.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of Templates: time 0.003375/0.01153, allocations: 1.367 MB / 355.8 MB, free: 0.9961 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1907635433599353]