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.00164/0.00164, allocations: 123.9 kB / 18.46 MB, free: 4.461 MB / 14.72 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.001951/0.001951, allocations: 205.8 kB / 21.41 MB, free: 1.516 MB / 14.72 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 1.587/1.587, allocations: 227.4 MB / 251.6 MB, free: 72 kB / 190.1 MB " [Timeout remaining time 178] 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.2474/0.2474, allocations: 46.18 MB / 351.1 MB, free: 14.26 MB / 286.1 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 0.002243/0.002243, allocations: 81.22 kB / 490.2 MB, free: 27.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1511, allocations: 62.44 MB / 0.5397 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003396/0.1545, allocations: 1.632 MB / 0.5413 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1557, allocations: 0.5103 MB / 0.5418 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.1558, allocations: 3.938 kB / 0.5418 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.1559, allocations: 11.81 kB / 0.5418 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.95e-05/0.156, allocations: 15.91 kB / 0.5418 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.1563, allocations: 31.91 kB / 0.5418 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.1565, allocations: 83.7 kB / 0.5419 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.1566, allocations: 36.16 kB / 0.5419 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.242e-05/0.1567, allocations: 27.91 kB / 0.542 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.517e-05/0.1568, allocations: 31.8 kB / 0.542 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.1568, allocations: 8 kB / 0.542 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.641e-05/0.1568, allocations: 4 kB / 0.542 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.1569, allocations: 19.98 kB / 0.542 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.12e-05/0.1569, allocations: 35.73 kB / 0.5421 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.1571, allocations: 75.66 kB / 0.5421 GB, free: 1.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.1572, allocations: 0 / 0.5421 GB, free: 1.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1572, allocations: 3.938 kB / 0.5421 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1572, allocations: 0 / 0.5421 GB, free: 1.68 MB / 398.1 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.0006774/0.1579, allocations: 391.1 kB / 0.5425 GB, free: 1.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.1579, allocations: 12.03 kB / 0.5425 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.158, allocations: 8.891 kB / 0.5425 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.1583, allocations: 200.2 kB / 0.5427 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.1583, allocations: 12.36 kB / 0.5427 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.1583, allocations: 8.375 kB / 0.5427 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.1585, allocations: 81.86 kB / 0.5428 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.1585, allocations: 0 / 0.5428 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.1585, allocations: 0 / 0.5428 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1585, allocations: 4 kB / 0.5428 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.886e-05/0.1586, allocations: 35.98 kB / 0.5429 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.1593, allocations: 352.7 kB / 0.5432 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.1594, allocations: 50.56 kB / 0.5432 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.581e-05/0.1595, allocations: 16.89 kB / 0.5433 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.1595, allocations: 0 / 0.5433 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.1596, allocations: 71.38 kB / 0.5433 GB, free: 304 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.1596, allocations: 0 / 0.5433 GB, free: 304 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002286/0.1599, allocations: 93.55 kB / 0.5434 GB, free: 204 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.1599, allocations: 51.41 kB / 0.5435 GB, free: 140 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.1601, allocations: 140.1 kB / 0.5436 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.1601, allocations: 29.7 kB / 0.5436 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.1602, allocations: 100 kB / 0.5437 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.1602, allocations: 11.91 kB / 0.5437 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-05/0.1603, allocations: 33.64 kB / 0.5438 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1605, allocations: 322.8 kB / 0.5441 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.716e-05/0.1605, allocations: 16 kB / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.742e-05/0.1606, allocations: 38.5 kB / 0.5441 GB, free: 15.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.1607, allocations: 50.52 kB / 0.5442 GB, free: 15.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1607, allocations: 8 kB / 0.5442 GB, free: 15.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001527/0.1609, allocations: 89.52 kB / 0.5443 GB, free: 15.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1609, allocations: 7.938 kB / 0.5443 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1609, allocations: 4 kB / 0.5443 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1609, allocations: 3.938 kB / 0.5443 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.161, allocations: 7.984 kB / 0.5443 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.161, allocations: 8.391 kB / 0.5443 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/0.1611, allocations: 11.94 kB / 0.5443 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.1611, allocations: 4 kB / 0.5443 GB, free: 15.21 MB / 414.1 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 0.0001231/0.1612, allocations: 128.6 kB / 0.5444 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.1612, allocations: 7.953 kB / 0.5444 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.1613, allocations: 12.66 kB / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1613, allocations: 4 kB / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1613, allocations: 0 / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1613, allocations: 0 / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.1617, allocations: 350.4 kB / 0.5448 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1617, allocations: 4 kB / 0.5448 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.877e-05/0.1618, allocations: 0 / 0.5448 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1618, allocations: 11.94 kB / 0.5448 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1618, allocations: 3.984 kB / 0.5448 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1618, allocations: 0 / 0.5448 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1618, allocations: 0 / 0.5448 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.1621, allocations: 191.4 kB / 0.545 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.1621, allocations: 81.06 kB / 0.5451 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.1622, allocations: 12.02 kB / 0.5451 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.482e-05/0.1623, allocations: 8.047 kB / 0.5451 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.1623, allocations: 4 kB / 0.5451 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-06/0.1623, allocations: 4 kB / 0.5451 GB, free: 14.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.405e-05/0.1624, allocations: 113.6 kB / 0.5452 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1624, allocations: 0 / 0.5452 GB, free: 14.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.1627, allocations: 12 kB / 0.5452 GB, free: 14.18 MB / 414.1 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 0.0001131/0.1628, allocations: 95.19 kB / 0.5453 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001445/0.1629, allocations: 43.98 kB / 0.5453 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.163, allocations: 4.312 kB / 0.5454 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.701e-05/0.163, allocations: 23.92 kB / 0.5454 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.1633, allocations: 33.42 kB / 0.5454 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005048/0.1639, allocations: 198.5 kB / 0.5456 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1642, allocations: 0.6963 MB / 0.5463 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.535e-05/0.1643, allocations: 8.438 kB / 0.5463 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.67e-05/0.1643, allocations: 23.42 kB / 0.5463 GB, free: 13 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1643, allocations: 0 / 0.5463 GB, free: 13 MB / 414.1 MB Notification: Performance of Templates: time 0.003813/0.1681, allocations: 0.9167 MB / 0.5472 GB, free: 12.09 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 5.394722909666598]