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.0009209/0.0009209, allocations: 80.8 kB / 21.49 MB, free: 3 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.000978/0.000978, allocations: 172.7 kB / 24.91 MB, free: 9.215 MB / 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.9942/0.9942, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2782/0.2782, allocations: 32.81 MB / 294.6 MB, free: 1.234 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.353e-06/1.353e-06, allocations: 0 / 323.2 MB, free: 9.738 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.329e-05/2.465e-05, allocations: 4.141 kB / 323.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002213/0.002237, allocations: 1.651 MB / 324.9 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008807/0.003118, allocations: 0.4954 MB / 325.4 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.003221, allocations: 7.938 kB / 325.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.003351, allocations: 19.8 kB / 325.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.15e-05/0.003393, allocations: 3.938 kB / 325.4 MB, free: 7.539 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.003556, allocations: 47.77 kB / 325.4 MB, free: 7.492 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.003663, allocations: 79.77 kB / 325.5 MB, free: 7.414 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.434e-05/0.003757, allocations: 24.83 kB / 325.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.046e-05/0.003818, allocations: 35.91 kB / 325.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.146e-05/0.003879, allocations: 27.89 kB / 325.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.0039, allocations: 8 kB / 325.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-06/0.00391, allocations: 4 kB / 325.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.003933, allocations: 19.92 kB / 325.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.99e-05/0.003963, allocations: 23.91 kB / 325.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.004077, allocations: 63.69 kB / 325.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.00408, allocations: 0 / 325.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.004082, allocations: 4 kB / 325.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.004085, allocations: 0 / 325.7 MB, free: 7.207 MB / 298.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.0003721/0.004457, allocations: 285.9 kB / 326 MB, free: 6.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.004487, allocations: 8.031 kB / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.21e-05/0.004519, allocations: 12.92 kB / 326 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.004652, allocations: 133.7 kB / 326.1 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.004666, allocations: 4.375 kB / 326.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.004686, allocations: 12.36 kB / 326.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.743e-05/0.004773, allocations: 71.44 kB / 326.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.004779, allocations: 4.188 kB / 326.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.004787, allocations: 4.375 kB / 326.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.004794, allocations: 7.938 kB / 326.2 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.985e-05/0.004824, allocations: 18.52 kB / 326.3 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002863/0.00511, allocations: 219.9 kB / 326.5 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.038e-05/0.00517, allocations: 30.58 kB / 326.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.684e-05/0.005187, allocations: 16.8 kB / 326.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-06/0.005194, allocations: 0 / 326.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.762e-05/0.005272, allocations: 79.28 kB / 326.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.005273, allocations: 0 / 326.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001045/0.005378, allocations: 53.69 kB / 326.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.00542, allocations: 59.39 kB / 326.7 MB, free: 6.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.722e-05/0.005477, allocations: 126.5 kB / 326.8 MB, free: 5.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.00549, allocations: 25.7 kB / 326.9 MB, free: 5.934 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.835e-05/0.005529, allocations: 109 kB / 327 MB, free: 5.824 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.005545, allocations: 11.91 kB / 327 MB, free: 5.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.005576, allocations: 29.69 kB / 327 MB, free: 5.777 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.512e-05/0.005651, allocations: 326.8 kB / 327.3 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.257e-05/0.005664, allocations: 7.938 kB / 327.3 MB, free: 5.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.375e-05/0.005687, allocations: 26.58 kB / 327.4 MB, free: 5.406 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.329e-05/0.005731, allocations: 46.53 kB / 327.4 MB, free: 5.352 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.005733, allocations: 0 / 327.4 MB, free: 5.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.619e-05/0.005799, allocations: 61.56 kB / 327.5 MB, free: 5.285 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.005813, allocations: 8 kB / 327.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.005817, allocations: 0 / 327.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.005827, allocations: 0 / 327.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.103e-05/0.005878, allocations: 11.98 kB / 327.5 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.005883, allocations: 8.062 kB / 327.5 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.005913, allocations: 4 kB / 327.5 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-06/0.005917, allocations: 4 kB / 327.5 MB, free: 5.25 MB / 298.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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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.063e-05/0.005978, allocations: 121.7 kB / 327.6 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.086e-05/0.005988, allocations: 11.92 kB / 327.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.212e-05/0.006011, allocations: 8.438 kB / 327.6 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.006013, allocations: 4 kB / 327.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.006015, allocations: 0 / 327.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.006018, allocations: 0 / 327.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.006213, allocations: 218.7 kB / 327.9 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.006215, allocations: 4 kB / 327.9 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.624e-05/0.006251, allocations: 7.938 kB / 327.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.006253, allocations: 4 kB / 327.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.006261, allocations: 7.922 kB / 327.9 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.006263, allocations: 0 / 327.9 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.006264, allocations: 0 / 327.9 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.006409, allocations: 163.5 kB / 328 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.101e-05/0.00642, allocations: 3.953 kB / 328 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.006432, allocations: 4 kB / 328.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.071e-05/0.006473, allocations: 3.984 kB / 328.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/0.0065, allocations: 12.02 kB / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.006506, allocations: 4 kB / 328.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.926e-05/0.006525, allocations: 24.83 kB / 328.1 MB, free: 4.605 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006526, allocations: 0 / 328.1 MB, free: 4.605 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001194/0.006645, allocations: 12 kB / 328.1 MB, free: 4.594 MB / 298.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,booleanPulse.pulseStart,fallingEdge.not_u) * 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.943e-05/0.006724, allocations: 84.3 kB / 328.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.593e-05/0.00679, allocations: 29.39 kB / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.006793, allocations: 0 / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.006825, allocations: 24.94 kB / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.006994, allocations: 28.25 kB / 328.3 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002984/0.007292, allocations: 197.1 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.505e-05/0.007327, allocations: 63.34 kB / 328.5 MB, free: 4.117 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.755e-05/0.007355, allocations: 15.97 kB / 328.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.238e-05/0.007407, allocations: 55.38 kB / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.007408, allocations: 0 / 328.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of Templates: time 0.002604/0.01001, allocations: 0.9458 MB / 329.5 MB, free: 3.125 MB / 298.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.924329349771142]