Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009913/0.0009913, allocations: 83.58 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.001935/0.001935, allocations: 161 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 1.06/1.06, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2658/0.2658, allocations: 34.26 MB / 295.7 MB, free: 0.7422 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.232e-05/3.421e-05, allocations: 2.312 kB / 378 MB, free: 2.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003159/0.003194, allocations: 1.664 MB / 379.7 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009746/0.004168, allocations: 0.4985 MB / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.925e-05/0.004267, allocations: 0 / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.004409, allocations: 15.86 kB / 380.2 MB, free: 484 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.609e-05/0.004465, allocations: 11.88 kB / 380.2 MB, free: 472 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.0047, allocations: 43.83 kB / 380.3 MB, free: 428 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000158/0.004859, allocations: 75.77 kB / 380.3 MB, free: 352 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.004991, allocations: 24.2 kB / 380.4 MB, free: 324 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.209e-05/0.005073, allocations: 39.91 kB / 380.4 MB, free: 284 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.263e-05/0.005146, allocations: 27.89 kB / 380.4 MB, free: 256 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.005169, allocations: 4 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.439e-05/0.005183, allocations: 8 kB / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.005214, allocations: 15.94 kB / 380.4 MB, free: 228 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.472e-05/0.005258, allocations: 23.91 kB / 380.5 MB, free: 204 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.005408, allocations: 59.69 kB / 380.5 MB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.005411, allocations: 4 kB / 380.5 MB, free: 140 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.005414, allocations: 4 kB / 380.5 MB, free: 136 kB / 346.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.00542, allocations: 0 / 380.5 MB, free: 136 kB / 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.0005869/0.006007, allocations: 424 kB / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.006052, allocations: 12.03 kB / 381 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.006108, allocations: 12.89 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.006309, allocations: 140.5 kB / 381.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.006333, allocations: 12.31 kB / 381.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.006365, allocations: 8.375 kB / 381.1 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.006511, allocations: 78.94 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.00652, allocations: 4.125 kB / 381.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.006532, allocations: 384 / 381.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.006542, allocations: 3.938 kB / 381.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.311e-05/0.006605, allocations: 23.98 kB / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005092/0.007114, allocations: 331.5 kB / 381.6 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.007221, allocations: 47.05 kB / 381.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.861e-05/0.00725, allocations: 11.72 kB / 381.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.00726, allocations: 3.938 kB / 381.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001216/0.007381, allocations: 73.09 kB / 381.7 MB, free: 14.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.007383, allocations: 0 / 381.7 MB, free: 14.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002077/0.00759, allocations: 77.84 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.007632, allocations: 55.41 kB / 381.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.007749, allocations: 181.8 kB / 382 MB, free: 14.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.007768, allocations: 33.7 kB / 382 MB, free: 14.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.856e-05/0.007836, allocations: 147.1 kB / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.00786, allocations: 15.89 kB / 382.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.007909, allocations: 31.38 kB / 382.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.008044, allocations: 0.4922 MB / 382.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.305e-05/0.008077, allocations: 16 kB / 382.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-05/0.008123, allocations: 35.05 kB / 382.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.349e-05/0.008197, allocations: 59.05 kB / 382.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.008199, allocations: 0 / 382.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001347/0.008334, allocations: 85.56 kB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.008351, allocations: 4 kB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.008357, allocations: 4 kB / 382.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.008376, allocations: 0 / 382.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.013e-05/0.008456, allocations: 12.06 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.008463, allocations: 0 / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.666e-05/0.00851, allocations: 7.984 kB / 382.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.008518, allocations: 7.938 kB / 382.9 MB, free: 13.48 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 8.962e-05/0.008608, allocations: 167.4 kB / 383.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.008633, allocations: 15.88 kB / 383.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.008668, allocations: 8.438 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.008673, allocations: 8 kB / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.008678, allocations: 0 / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.008682, allocations: 3.984 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.009005, allocations: 341.2 kB / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.009007, allocations: 0 / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.734e-05/0.009054, allocations: 7.984 kB / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.009057, allocations: 0 / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.009069, allocations: 4 kB / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.009071, allocations: 0 / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.009074, allocations: 3.938 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.009279, allocations: 223.9 kB / 383.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.473e-05/0.009294, allocations: 7.953 kB / 383.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.00931, allocations: 0 / 383.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.947e-05/0.00938, allocations: 8 kB / 383.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.009432, allocations: 19.94 kB / 383.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.009438, allocations: 3.938 kB / 383.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.955e-05/0.009498, allocations: 139.5 kB / 383.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009498, allocations: 0 / 383.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000264/0.009762, allocations: 12 kB / 383.9 MB, free: 12.46 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 0.0001063/0.009868, allocations: 95.25 kB / 384 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001382/0.01001, allocations: 43.61 kB / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.01001, allocations: 0 / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.094e-05/0.01006, allocations: 27.67 kB / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.01039, allocations: 20.66 kB / 384.1 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004411/0.01083, allocations: 202.2 kB / 384.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.009e-05/0.01088, allocations: 63.34 kB / 384.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.383e-05/0.01092, allocations: 4 kB / 384.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.01096, allocations: 16.5 kB / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01096, allocations: 3.938 kB / 384.4 MB, free: 11.93 MB / 362.7 MB Notification: Performance of Templates: time 0.00348/0.01444, allocations: 0.9264 MB / 385.3 MB, free: 11.01 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.199131346773356]