Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009387/0.0009387, allocations: 80.81 kB / 21.5 MB, free: 2.828 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 164.9 kB / 24.91 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9595/0.9595, allocations: 177 MB / 205.2 MB, free: 5.438 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2453/0.2453, allocations: 34.86 MB / 296.6 MB, free: 0.5156 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.307e-05/2.457e-05, allocations: 3.516 kB / 325.9 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002388/0.002412, allocations: 1.661 MB / 327.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007468/0.003159, allocations: 0.4986 MB / 328.1 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.005e-05/0.003239, allocations: 3.938 kB / 328.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.003358, allocations: 3.938 kB / 328.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.648e-05/0.003405, allocations: 27.8 kB / 328.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.003577, allocations: 39.83 kB / 328.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.003685, allocations: 72.41 kB / 328.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.003786, allocations: 24.19 kB / 328.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.358e-05/0.003849, allocations: 43.91 kB / 328.3 MB, free: 4.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.854e-05/0.003908, allocations: 23.91 kB / 328.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.003929, allocations: 4 kB / 328.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.105e-05/0.00394, allocations: 8 kB / 328.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.003965, allocations: 15.91 kB / 328.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.004002, allocations: 23.92 kB / 328.3 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.004107, allocations: 59.73 kB / 328.4 MB, free: 4.676 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004109, allocations: 4 kB / 328.4 MB, free: 4.672 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.004109, allocations: 0 / 328.4 MB, free: 4.672 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.004114, allocations: 3.938 kB / 328.4 MB, free: 4.668 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.0004059/0.00452, allocations: 294 kB / 328.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.004557, allocations: 8.031 kB / 328.7 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.0046, allocations: 20.91 kB / 328.7 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.004767, allocations: 135 kB / 328.9 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.004786, allocations: 8.375 kB / 328.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.004812, allocations: 16.38 kB / 328.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.004924, allocations: 70.88 kB / 328.9 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.004932, allocations: 192 / 328.9 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.004946, allocations: 8.359 kB / 329 MB, free: 4.066 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.004954, allocations: 3.938 kB / 329 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.717e-05/0.004991, allocations: 12 kB / 329 MB, free: 4.051 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003778/0.005368, allocations: 220.7 kB / 329.2 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.772e-05/0.005436, allocations: 26.58 kB / 329.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.005451, allocations: 12.84 kB / 329.2 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.005459, allocations: 8 kB / 329.2 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.959e-05/0.005539, allocations: 63.33 kB / 329.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.00554, allocations: 0 / 329.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001119/0.005652, allocations: 57.66 kB / 329.3 MB, free: 3.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.00569, allocations: 55.41 kB / 329.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/0.005755, allocations: 122.7 kB / 329.5 MB, free: 3.426 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.00577, allocations: 29.7 kB / 329.6 MB, free: 3.391 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.849e-05/0.005808, allocations: 100.3 kB / 329.7 MB, free: 3.289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.005829, allocations: 19.89 kB / 329.7 MB, free: 3.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.00587, allocations: 29.69 kB / 329.7 MB, free: 3.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.671e-05/0.005957, allocations: 322.8 kB / 330 MB, free: 2.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.005972, allocations: 12 kB / 330 MB, free: 2.898 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.731e-05/0.005999, allocations: 30.5 kB / 330.1 MB, free: 2.859 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.393e-05/0.006043, allocations: 42.48 kB / 330.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.006045, allocations: 0 / 330.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.775e-05/0.006113, allocations: 61.62 kB / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.006125, allocations: 11.92 kB / 330.2 MB, free: 2.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.006131, allocations: 4 kB / 330.2 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.006141, allocations: 0 / 330.2 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.886e-05/0.00619, allocations: 12.06 kB / 330.2 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.006193, allocations: 0 / 330.2 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.006225, allocations: 4 kB / 330.2 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.006233, allocations: 8 kB / 330.2 MB, free: 2.703 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.732e-05/0.0063, allocations: 117.7 kB / 330.3 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-06/0.006309, allocations: 4 kB / 330.3 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/0.006334, allocations: 16.44 kB / 330.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.006335, allocations: 0 / 330.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.006336, allocations: 0 / 330.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.00634, allocations: 7.922 kB / 330.3 MB, free: 2.551 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.00652, allocations: 219.1 kB / 330.6 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.006522, allocations: 0 / 330.6 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.939e-05/0.006551, allocations: 7.984 kB / 330.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.006553, allocations: 0 / 330.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.006559, allocations: 0 / 330.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.006562, allocations: 8 kB / 330.6 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.006564, allocations: 3.938 kB / 330.6 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.006674, allocations: 167.5 kB / 330.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-06/0.006683, allocations: 7.953 kB / 330.7 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.006694, allocations: 4 kB / 330.7 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.185e-05/0.006736, allocations: 12.02 kB / 330.8 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.006766, allocations: 7.984 kB / 330.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.00677, allocations: 0 / 330.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.981e-05/0.00679, allocations: 21.92 kB / 330.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00679, allocations: 3.938 kB / 330.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001215/0.006911, allocations: 16 kB / 330.8 MB, free: 2.039 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.202e-05/0.006983, allocations: 79.75 kB / 330.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.795e-05/0.007051, allocations: 36.78 kB / 330.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.007053, allocations: 4 kB / 330.9 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.111e-05/0.007084, allocations: 20.92 kB / 330.9 MB, free: 1.891 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.007244, allocations: 23.98 kB / 331 MB, free: 1.867 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002893/0.007534, allocations: 185.4 kB / 331.2 MB, free: 1.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.455e-05/0.007568, allocations: 63.34 kB / 331.2 MB, free: 1.578 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.708e-05/0.007595, allocations: 7.984 kB / 331.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.559e-05/0.007651, allocations: 63.38 kB / 331.3 MB, free: 1.508 MB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.007652, allocations: 0 / 331.3 MB, free: 1.508 MB / 298.7 MB Notification: Performance of Templates: time 0.002572/0.01022, allocations: 0.9349 MB / 332.2 MB, free: 0.5977 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 2.8831527419388294]