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.0009402/0.0009402, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009523/0.0009523, allocations: 170 kB / 24.82 MB, free: 9.254 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.928/0.928, allocations: 177 MB / 205.1 MB, free: 5.488 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.2277/0.2277, allocations: 34.86 MB / 296.6 MB, free: 0.5078 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.002e-06/1.002e-06, allocations: 0 / 379.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1e-05/1.2e-05, allocations: 7.016 kB / 379.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001682/0.001694, allocations: 1.648 MB / 380.9 MB, free: 184 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005775/0.002272, allocations: 0.4907 MB / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.41e-05/0.002336, allocations: 4 kB / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 9.277e-05/0.002428, allocations: 11.86 kB / 381.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 3.502e-05/0.002463, allocations: 15.86 kB / 381.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001222/0.002586, allocations: 35.84 kB / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 9.052e-05/0.002676, allocations: 83.75 kB / 381.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.232e-05/0.002758, allocations: 20.22 kB / 381.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.525e-05/0.002814, allocations: 47.83 kB / 381.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.882e-05/0.002863, allocations: 23.91 kB / 381.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.002878, allocations: 8 kB / 381.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.766e-06/0.002886, allocations: 4 kB / 381.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.002907, allocations: 15.92 kB / 381.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.452e-05/0.002932, allocations: 23.92 kB / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 8.954e-05/0.003021, allocations: 59.73 kB / 381.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.003023, allocations: 4 kB / 381.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.003023, allocations: 0 / 381.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.003033, allocations: 0 / 381.7 MB, free: 15.33 MB / 362.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.0003429/0.003375, allocations: 428 kB / 382.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.003404, allocations: 8.031 kB / 382.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.003431, allocations: 16.89 kB / 382.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.00354, allocations: 140.4 kB / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.003553, allocations: 8.375 kB / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.003568, allocations: 4.375 kB / 382.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.826e-05/0.003646, allocations: 82.88 kB / 382.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.003652, allocations: 4.172 kB / 382.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-06/0.003659, allocations: 384 / 382.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.003663, allocations: 3.938 kB / 382.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.77e-05/0.003691, allocations: 19.92 kB / 382.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.004212, allocations: 312.1 kB / 382.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.546e-05/0.004267, allocations: 43.05 kB / 382.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.501e-05/0.004282, allocations: 15.75 kB / 382.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.004291, allocations: 4 kB / 382.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.875e-05/0.00436, allocations: 73.03 kB / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.004361, allocations: 0 / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001111/0.004472, allocations: 69.58 kB / 382.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.004495, allocations: 55.39 kB / 383 MB, free: 13.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.284e-05/0.004558, allocations: 177.9 kB / 383.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.004569, allocations: 29.7 kB / 383.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.004618, allocations: 155.1 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.004646, allocations: 15.89 kB / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.004686, allocations: 35.34 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.004786, allocations: 0.4883 MB / 383.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.468e-05/0.0048, allocations: 15.98 kB / 383.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.686e-05/0.004827, allocations: 42.98 kB / 383.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.907e-05/0.004866, allocations: 43.05 kB / 384 MB, free: 12.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.004868, allocations: 0 / 384 MB, free: 12.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.836e-05/0.004936, allocations: 73.58 kB / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.004948, allocations: 4 kB / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.004955, allocations: 0 / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.004968, allocations: 4 kB / 384 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.423e-05/0.005012, allocations: 23.98 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-06/0.005014, allocations: 0 / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.66e-05/0.005041, allocations: 4 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.005044, allocations: 0 / 384.1 MB, free: 12.74 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 5.959e-05/0.005104, allocations: 168.5 kB / 384.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.759e-06/0.005114, allocations: 7.953 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.005137, allocations: 16.42 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.005138, allocations: 0 / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.005139, allocations: 0 / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.005142, allocations: 0 / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.005321, allocations: 325.8 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.005322, allocations: 0 / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.385e-05/0.005346, allocations: 4 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.005347, allocations: 0 / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.005353, allocations: 3.984 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.005354, allocations: 0 / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.005355, allocations: 0 / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.00547, allocations: 228.2 kB / 384.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.059e-05/0.005481, allocations: 19.94 kB / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-06/0.00549, allocations: 0 / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.703e-05/0.005527, allocations: 4 kB / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.531e-05/0.005552, allocations: 12.02 kB / 384.8 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.005556, allocations: 4 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.683e-05/0.005593, allocations: 135.2 kB / 385 MB, free: 11.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005593, allocations: 0 / 385 MB, free: 11.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001376/0.00573, allocations: 15.94 kB / 385 MB, free: 11.75 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 5.843e-05/0.005789, allocations: 104 kB / 385.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.339e-05/0.005852, allocations: 35.8 kB / 385.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.005854, allocations: 0 / 385.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.005886, allocations: 27.61 kB / 385.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.006064, allocations: 27.12 kB / 385.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000239/0.006303, allocations: 202.2 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.027e-05/0.006333, allocations: 63.34 kB / 385.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.061e-05/0.006354, allocations: 4 kB / 385.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.945e-05/0.006403, allocations: 82.12 kB / 385.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.006404, allocations: 4 kB / 385.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of Templates: time 0.00217/0.008574, allocations: 0.9924 MB / 386.5 MB, free: 10.17 MB / 362.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.7203606152907014]