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.001559/0.001559, allocations: 84.34 kB / 22.21 MB, free: 2.289 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.001382/0.001382, allocations: 162 kB / 25.61 MB, free: 8.59 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 1.007/1.007, allocations: 177 MB / 205.9 MB, free: 4.441 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.1548/0.1548, allocations: 34.88 MB / 297.4 MB, free: 13.32 MB / 282.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.843e-06/1.843e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.396e-05/2.58e-05, allocations: 4.188 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00245/0.002476, allocations: 1.653 MB / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008129/0.003289, allocations: 0.4984 MB / 382.1 MB, free: 20.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.38e-05/0.003383, allocations: 0 / 382.1 MB, free: 20.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.003515, allocations: 15.88 kB / 382.2 MB, free: 20.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-05/0.003565, allocations: 11.86 kB / 382.2 MB, free: 20.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.003745, allocations: 39.83 kB / 382.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.003874, allocations: 75.78 kB / 382.3 MB, free: 20.45 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.003986, allocations: 24.2 kB / 382.3 MB, free: 20.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.579e-05/0.004052, allocations: 39.91 kB / 382.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.989e-05/0.004122, allocations: 23.89 kB / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.004144, allocations: 8 kB / 382.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.192e-05/0.004156, allocations: 4 kB / 382.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/0.004182, allocations: 23.92 kB / 382.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.004214, allocations: 27.91 kB / 382.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.00433, allocations: 55.75 kB / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004332, allocations: 0 / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004333, allocations: 0 / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.004337, allocations: 0 / 382.5 MB, free: 20.24 MB / 314.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.0004134/0.00475, allocations: 427.9 kB / 382.9 MB, free: 19.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.004784, allocations: 8.031 kB / 382.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.004823, allocations: 16.89 kB / 382.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.004957, allocations: 144.4 kB / 383.1 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.004975, allocations: 8.312 kB / 383.1 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.004994, allocations: 12.38 kB / 383.1 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.005108, allocations: 68.34 kB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.005118, allocations: 4.188 kB / 383.2 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.005127, allocations: 8.359 kB / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.005133, allocations: 3.938 kB / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.762e-05/0.005161, allocations: 15.98 kB / 383.2 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000293/0.005454, allocations: 312.1 kB / 383.5 MB, free: 19.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.842e-05/0.005512, allocations: 50.97 kB / 383.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.55e-05/0.005528, allocations: 15.72 kB / 383.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.005535, allocations: 0 / 383.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.114e-05/0.005606, allocations: 69.08 kB / 383.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.005607, allocations: 0 / 383.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.000132/0.005739, allocations: 77.55 kB / 383.7 MB, free: 18.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.005763, allocations: 55.41 kB / 383.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.72e-05/0.00581, allocations: 177.9 kB / 383.9 MB, free: 18.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.005818, allocations: 29.69 kB / 384 MB, free: 18.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.005851, allocations: 151 kB / 384.1 MB, free: 18.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.005869, allocations: 19.97 kB / 384.1 MB, free: 18.42 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.005897, allocations: 35.36 kB / 384.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.588e-05/0.005943, allocations: 0.4922 MB / 384.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.005955, allocations: 8 kB / 384.7 MB, free: 17.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.174e-05/0.005977, allocations: 35.05 kB / 384.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.471e-05/0.006012, allocations: 46.98 kB / 384.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.006014, allocations: 3.984 kB / 384.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 6.566e-05/0.006079, allocations: 77.58 kB / 384.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/0.006089, allocations: 4.062 kB / 384.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.006093, allocations: 4 kB / 384.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.006103, allocations: 4 kB / 384.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.499e-05/0.006148, allocations: 8 kB / 384.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.476e-06/0.006151, allocations: 0 / 384.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.03e-05/0.006182, allocations: 15.88 kB / 384.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.006185, allocations: 0 / 384.9 MB, free: 17.64 MB / 314.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 4.839e-05/0.006234, allocations: 164.5 kB / 385 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.749e-06/0.006244, allocations: 11.95 kB / 385 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.958e-05/0.006263, allocations: 12.44 kB / 385 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.006266, allocations: 3.984 kB / 385 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.006267, allocations: 4 kB / 385 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.00627, allocations: 0 / 385 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.006438, allocations: 317.9 kB / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.006438, allocations: 0 / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.733e-05/0.006466, allocations: 4 kB / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.006467, allocations: 0 / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.006474, allocations: 0 / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.006474, allocations: 0 / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.006476, allocations: 4 kB / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.006582, allocations: 219.8 kB / 385.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-06/0.00659, allocations: 15.91 kB / 385.6 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.006603, allocations: 4 kB / 385.6 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.078e-05/0.006643, allocations: 11.98 kB / 385.6 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.006678, allocations: 11.97 kB / 385.6 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.006683, allocations: 0 / 385.6 MB, free: 16.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.796e-05/0.006711, allocations: 132.4 kB / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006711, allocations: 0 / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001789/0.00689, allocations: 23.89 kB / 385.8 MB, free: 16.66 MB / 314.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 6.887e-05/0.006959, allocations: 95.25 kB / 385.9 MB, free: 16.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.861e-05/0.007047, allocations: 48.2 kB / 385.9 MB, free: 16.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.007049, allocations: 4 kB / 385.9 MB, free: 16.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.943e-05/0.007078, allocations: 23.81 kB / 385.9 MB, free: 16.47 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.007288, allocations: 19.7 kB / 386 MB, free: 16.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002863/0.007574, allocations: 192 kB / 386.1 MB, free: 16.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.643e-05/0.007601, allocations: 71.22 kB / 386.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.468e-05/0.007625, allocations: 4 kB / 386.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.784e-05/0.007673, allocations: 86.19 kB / 386.3 MB, free: 16.06 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007674, allocations: 0 / 386.3 MB, free: 16.06 MB / 314.7 MB Notification: Performance of Templates: time 0.002616/0.01029, allocations: 1.025 MB / 387.3 MB, free: 15.06 MB / 314.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: 3.3904221588745713]