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.002452/0.002452, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002832/0.002832, allocations: 165.6 kB / 24.28 MB, free: 152 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.614/1.614, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.352/0.352, allocations: 32.8 MB / 293.9 MB, free: 1.215 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.954e-06/1.954e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/2.999e-05, allocations: 2.312 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003384/0.003414, allocations: 1.627 MB / 376.9 MB, free: 3.371 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.004462, allocations: 0.4908 MB / 377.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.004545, allocations: 4 kB / 377.4 MB, free: 2.871 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.004683, allocations: 11.88 kB / 377.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.478e-05/0.004737, allocations: 11.86 kB / 377.4 MB, free: 2.848 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.004959, allocations: 39.83 kB / 377.4 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.005143, allocations: 83.67 kB / 377.5 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.005273, allocations: 20.22 kB / 377.5 MB, free: 2.707 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.005367, allocations: 47.83 kB / 377.6 MB, free: 2.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.021e-05/0.005447, allocations: 23.91 kB / 377.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.005474, allocations: 8 kB / 377.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.005489, allocations: 4 kB / 377.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.319e-05/0.005522, allocations: 19.92 kB / 377.6 MB, free: 2.605 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.346e-05/0.005575, allocations: 23.91 kB / 377.7 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.005758, allocations: 71.78 kB / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.005762, allocations: 0 / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.005763, allocations: 0 / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.005768, allocations: 0 / 377.7 MB, free: 2.512 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.0008867/0.006655, allocations: 439.5 kB / 378.2 MB, free: 2.043 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.006699, allocations: 12.03 kB / 378.2 MB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.92e-05/0.006758, allocations: 20.83 kB / 378.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.007007, allocations: 140.5 kB / 378.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.007026, allocations: 8.375 kB / 378.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.00705, allocations: 4.375 kB / 378.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.007217, allocations: 77.89 kB / 378.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.007226, allocations: 192 / 378.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.007241, allocations: 4.312 kB / 378.4 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.007248, allocations: 3.938 kB / 378.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.195e-05/0.00734, allocations: 39.97 kB / 378.5 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006252/0.007965, allocations: 343.5 kB / 378.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.008098, allocations: 59.03 kB / 378.9 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.021e-05/0.008138, allocations: 15.72 kB / 378.9 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.008154, allocations: 4 kB / 378.9 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.0083, allocations: 73.09 kB / 378.9 MB, free: 1.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.008301, allocations: 3.938 kB / 378.9 MB, free: 1.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002474/0.008548, allocations: 89.61 kB / 379 MB, free: 1.062 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.008599, allocations: 55.41 kB / 379.1 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.008762, allocations: 189.9 kB / 379.3 MB, free: 0.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.008787, allocations: 29.7 kB / 379.3 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.008919, allocations: 155.1 kB / 379.5 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.008945, allocations: 15.84 kB / 379.5 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.717e-05/0.009013, allocations: 39.36 kB / 379.5 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000308/0.009321, allocations: 0.4922 MB / 380 MB, free: 36 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.424e-05/0.009365, allocations: 15.98 kB / 380 MB, free: 20 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.009467, allocations: 51 kB / 380.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.96e-05/0.009566, allocations: 59.05 kB / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.009568, allocations: 4 kB / 380.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001675/0.009735, allocations: 89.88 kB / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.009752, allocations: 7.938 kB / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.009757, allocations: 3.938 kB / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.009773, allocations: 4 kB / 380.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.557e-05/0.009849, allocations: 12 kB / 380.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.009857, allocations: 4.062 kB / 380.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.206e-05/0.009909, allocations: 7.984 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.009928, allocations: 3.938 kB / 380.3 MB, free: 15.75 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 0.0001357/0.01006, allocations: 168.6 kB / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.01009, allocations: 11.95 kB / 380.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.01012, allocations: 8.438 kB / 380.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01012, allocations: 4 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.01013, allocations: 3.984 kB / 380.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.01013, allocations: 0 / 380.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.01056, allocations: 357.2 kB / 380.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.01057, allocations: 0 / 380.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.503e-05/0.01061, allocations: 4 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.01061, allocations: 0 / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.01063, allocations: 12 kB / 380.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01063, allocations: 0 / 380.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.01063, allocations: 3.938 kB / 380.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.01094, allocations: 239.8 kB / 381.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.01095, allocations: 4 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.01097, allocations: 4 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.884e-05/0.01105, allocations: 7.984 kB / 381.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.0111, allocations: 11.92 kB / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.01111, allocations: 0 / 381.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001224/0.01123, allocations: 143.2 kB / 381.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01123, allocations: 4.031 kB / 381.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.01145, allocations: 15.95 kB / 381.2 MB, free: 14.69 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.000115/0.01156, allocations: 95.25 kB / 381.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002203/0.01178, allocations: 55.55 kB / 381.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01179, allocations: 0 / 381.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.225e-05/0.01186, allocations: 39.61 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.01215, allocations: 12.75 kB / 381.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005117/0.01266, allocations: 214.2 kB / 381.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.43e-05/0.01275, allocations: 79.45 kB / 381.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.336e-05/0.01278, allocations: 7.984 kB / 381.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.01282, allocations: 16.5 kB / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01282, allocations: 0 / 381.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of Templates: time 0.004132/0.01696, allocations: 0.9313 MB / 382.7 MB, free: 13.2 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.863832826958969]