Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.001298/0.001298, allocations: 75.77 kB / 21.18 MB, free: 3.375 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.001603/0.001603, allocations: 161 kB / 24.56 MB, free: 4 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.9628/0.9628, allocations: 177.1 MB / 205 MB, free: 5.605 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.2585/0.2585, allocations: 32.8 MB / 294.3 MB, free: 1.277 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.604e-05, allocations: 6.25 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.005418/0.005444, allocations: 1.654 MB / 377.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007698/0.006214, allocations: 0.5024 MB / 378.2 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.525e-05/0.006289, allocations: 0 / 378.2 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.006414, allocations: 15.86 kB / 378.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.006459, allocations: 7.875 kB / 378.2 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.006641, allocations: 39.83 kB / 378.2 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000129/0.00677, allocations: 79.77 kB / 378.3 MB, free: 2.371 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.006871, allocations: 24.2 kB / 378.3 MB, free: 2.348 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.515e-05/0.006936, allocations: 39.91 kB / 378.4 MB, free: 2.309 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.834e-05/0.006994, allocations: 27.89 kB / 378.4 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.007017, allocations: 8 kB / 378.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.262e-05/0.007029, allocations: 8 kB / 378.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.007054, allocations: 19.86 kB / 378.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.00709, allocations: 23.92 kB / 378.4 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.007209, allocations: 51.75 kB / 378.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.007212, allocations: 0 / 378.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007213, allocations: 7.938 kB / 378.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.007218, allocations: 0 / 378.5 MB, free: 2.164 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.003489/0.01071, allocations: 424 kB / 378.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.01074, allocations: 12.03 kB / 378.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.01079, allocations: 20.89 kB / 378.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.01095, allocations: 144.4 kB / 379.1 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.01097, allocations: 8.375 kB / 379.1 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.01099, allocations: 8.375 kB / 379.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.01111, allocations: 74.94 kB / 379.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.01112, allocations: 192 / 379.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.01113, allocations: 4.375 kB / 379.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.01114, allocations: 3.938 kB / 379.2 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.097e-05/0.01119, allocations: 23.97 kB / 379.2 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004147/0.0116, allocations: 331.5 kB / 379.5 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.899e-05/0.01169, allocations: 50.98 kB / 379.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.316e-05/0.01172, allocations: 11.72 kB / 379.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.01172, allocations: 0 / 379.6 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.823e-05/0.01182, allocations: 73.09 kB / 379.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.01182, allocations: 0 / 379.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001763/0.012, allocations: 77.55 kB / 379.7 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.01204, allocations: 55.41 kB / 379.8 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.967e-05/0.01212, allocations: 181.9 kB / 380 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.01214, allocations: 33.7 kB / 380 MB, free: 488 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.0122, allocations: 155.1 kB / 380.2 MB, free: 328 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.01222, allocations: 11.91 kB / 380.2 MB, free: 316 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/0.01227, allocations: 35.36 kB / 380.2 MB, free: 272 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.0124, allocations: 0.4883 MB / 380.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.041e-05/0.01243, allocations: 11.98 kB / 380.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.114e-05/0.01247, allocations: 42.94 kB / 380.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.551e-05/0.01254, allocations: 54.98 kB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01254, allocations: 0 / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001171/0.01266, allocations: 89.86 kB / 380.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.01267, allocations: 4 kB / 380.9 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.01268, allocations: 4 kB / 380.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.01269, allocations: 0 / 380.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.151e-05/0.01276, allocations: 11.94 kB / 380.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.01277, allocations: 8.047 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.727e-05/0.01281, allocations: 4 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.01282, allocations: 11.94 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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 7.55e-05/0.01289, allocations: 156.6 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.01291, allocations: 16.02 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.01294, allocations: 8.438 kB / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.01294, allocations: 4 kB / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.01295, allocations: 3.984 kB / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.01295, allocations: 0 / 381.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.01623, allocations: 337.2 kB / 381.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01624, allocations: 0 / 381.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/0.01628, allocations: 8 kB / 381.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.01628, allocations: 0 / 381.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.01629, allocations: 4 kB / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.01629, allocations: 0 / 381.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.01629, allocations: 11.94 kB / 381.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.01667, allocations: 223.8 kB / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.028e-05/0.01668, allocations: 7.953 kB / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.0167, allocations: 4 kB / 381.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.709e-05/0.01676, allocations: 7.984 kB / 381.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.0168, allocations: 11.92 kB / 381.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-06/0.0168, allocations: 0 / 381.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.162e-05/0.01685, allocations: 139.1 kB / 381.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01685, allocations: 4 kB / 381.9 MB, free: 14.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002266/0.01708, allocations: 12 kB / 381.9 MB, free: 14.48 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,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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 7.968e-05/0.01716, allocations: 100 kB / 382 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.01727, allocations: 39.61 kB / 382 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.01727, allocations: 4 kB / 382 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.01731, allocations: 27.67 kB / 382 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.01758, allocations: 28.88 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.01792, allocations: 202.1 kB / 382.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.951e-05/0.01796, allocations: 63.34 kB / 382.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.83e-05/0.01799, allocations: 8.109 kB / 382.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.01803, allocations: 16.5 kB / 382.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01803, allocations: 0 / 382.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of Templates: time 0.005985/0.02401, allocations: 0.9746 MB / 383.3 MB, free: 12.98 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.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.9067457248456776]