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/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.00131/0.00131, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001362/0.001362, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9158/0.9158, allocations: 177.1 MB / 205 MB, free: 5.262 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2375/0.2375, allocations: 32.8 MB / 294.3 MB, free: 1.246 MB / 266.7 MB " [Timeout remaining time 180] 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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.032e-06/1.032e-06, allocations: 0 / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.353e-05/1.456e-05, allocations: 6.312 kB / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00191/0.001925, allocations: 1.676 MB / 377.7 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007462/0.002671, allocations: 0.5725 MB / 378.2 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.293e-05/0.002744, allocations: 7.938 kB / 378.3 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.92e-05/0.002843, allocations: 7.875 kB / 378.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.172e-05/0.002885, allocations: 15.86 kB / 378.3 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.003152, allocations: 87.77 kB / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.003289, allocations: 119.6 kB / 378.5 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.683e-05/0.003386, allocations: 19.92 kB / 378.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.569e-05/0.003472, allocations: 71.86 kB / 378.6 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.003524, allocations: 23.91 kB / 378.6 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.003546, allocations: 8 kB / 378.6 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.003558, allocations: 8 kB / 378.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.003583, allocations: 31.91 kB / 378.6 MB, free: 2.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.368e-05/0.003617, allocations: 23.92 kB / 378.7 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.003728, allocations: 71.72 kB / 378.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.00373, allocations: 0 / 378.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.00373, allocations: 0 / 378.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.003734, allocations: 3.938 kB / 378.7 MB, free: 1.922 MB / 346.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.0004158/0.00415, allocations: 435.9 kB / 379.2 MB, free: 1.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.00418, allocations: 12.03 kB / 379.2 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.004221, allocations: 16.89 kB / 379.2 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.004371, allocations: 144.5 kB / 379.3 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.004389, allocations: 8.375 kB / 379.3 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.004408, allocations: 12.33 kB / 379.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.004556, allocations: 94.84 kB / 379.4 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.004564, allocations: 192 / 379.4 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.004574, allocations: 4.375 kB / 379.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.004582, allocations: 3.938 kB / 379.5 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.467e-05/0.004626, allocations: 23.98 kB / 379.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003689/0.004995, allocations: 347.5 kB / 379.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.005095, allocations: 63.03 kB / 379.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.573e-05/0.005121, allocations: 19.72 kB / 379.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.005128, allocations: 0 / 379.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.329e-05/0.005222, allocations: 77.02 kB / 380 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.005223, allocations: 8 kB / 380 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001647/0.005388, allocations: 77.62 kB / 380.1 MB, free: 468 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.005415, allocations: 51.41 kB / 380.1 MB, free: 404 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.312e-05/0.005498, allocations: 201.1 kB / 380.3 MB, free: 188 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.005511, allocations: 29.7 kB / 380.3 MB, free: 152 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.341e-05/0.005575, allocations: 151.2 kB / 380.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.005592, allocations: 11.84 kB / 380.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.005626, allocations: 31.38 kB / 380.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.005726, allocations: 0.4961 MB / 381 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.432e-05/0.00575, allocations: 11.98 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.309e-05/0.005783, allocations: 39.31 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.668e-05/0.00583, allocations: 35.36 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.005831, allocations: 7.938 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.649e-05/0.005918, allocations: 85.52 kB / 381.2 MB, free: 15.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.00593, allocations: 6.656 kB / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-06/0.005934, allocations: 0 / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.005945, allocations: 0 / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.632e-05/0.006011, allocations: 15.98 kB / 381.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.006016, allocations: 4.031 kB / 381.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.183e-05/0.006048, allocations: 11.95 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.006053, allocations: 0 / 381.2 MB, free: 15.2 MB / 362.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 6.534e-05/0.006118, allocations: 172.4 kB / 381.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.00613, allocations: 11.95 kB / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.514e-05/0.006155, allocations: 16.77 kB / 381.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.006157, allocations: 0 / 381.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.006166, allocations: 8 kB / 381.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.006169, allocations: 0 / 381.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.006393, allocations: 345.3 kB / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.006393, allocations: 0 / 381.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.981e-05/0.006433, allocations: 8 kB / 381.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.006435, allocations: 0 / 381.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.006444, allocations: 0 / 381.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.006445, allocations: 0 / 381.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.006446, allocations: 400 / 381.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.006588, allocations: 243.8 kB / 382 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.012e-05/0.006599, allocations: 7.938 kB / 382 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.006612, allocations: 12.03 kB / 382 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.746e-05/0.00666, allocations: 4 kB / 382 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.006705, allocations: 27.89 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.00671, allocations: 0 / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.573e-05/0.006756, allocations: 143.2 kB / 382.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006756, allocations: 0 / 382.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001452/0.006901, allocations: 15.95 kB / 382.2 MB, free: 14.13 MB / 362.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 5.836e-05/0.006959, allocations: 99.25 kB / 382.3 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.829e-05/0.007058, allocations: 51.55 kB / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-06/0.007059, allocations: 0 / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.251e-05/0.007101, allocations: 35.61 kB / 382.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.007291, allocations: 15.98 kB / 382.4 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004275/0.007719, allocations: 246.1 kB / 382.7 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.272e-05/0.007751, allocations: 67.34 kB / 382.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.007e-05/0.007781, allocations: 8.719 kB / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.007813, allocations: 16.5 kB / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of SimCode: time 4.8e-07/0.007813, allocations: 0 / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of Templates: time 0.002677/0.01049, allocations: 1.346 MB / 384.1 MB, free: 12.21 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8757233237847686]