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.001002/0.001002, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009897/0.0009897, allocations: 162.5 kB / 24.91 MB, free: 9.211 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.9377/0.9377, allocations: 177 MB / 205.2 MB, free: 5.453 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.2963/0.2963, allocations: 34.86 MB / 296.6 MB, free: 0.5195 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.803e-06/1.803e-06, allocations: 0 / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.559e-05, allocations: 4.141 kB / 325.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002461/0.002486, allocations: 1.707 MB / 327.7 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007469/0.003233, allocations: 0.4947 MB / 328.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.918e-05/0.003322, allocations: 4 kB / 328.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.003437, allocations: 11.86 kB / 328.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.161e-05/0.003479, allocations: 11.88 kB / 328.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.003644, allocations: 39.83 kB / 328.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.003767, allocations: 84.33 kB / 328.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.003872, allocations: 28.19 kB / 328.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.503e-05/0.003937, allocations: 43.84 kB / 328.4 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.211e-05/0.003999, allocations: 23.89 kB / 328.4 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.004018, allocations: 8 kB / 328.4 MB, free: 4.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.034e-05/0.004028, allocations: 8 kB / 328.4 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.462e-05/0.004053, allocations: 19.92 kB / 328.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.004081, allocations: 15.98 kB / 328.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.004196, allocations: 63.69 kB / 328.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.004199, allocations: 0 / 328.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.004199, allocations: 0 / 328.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.004203, allocations: 0 / 328.5 MB, free: 4.574 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.0004748/0.004678, allocations: 290 kB / 328.8 MB, free: 4.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.004713, allocations: 12.03 kB / 328.8 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.004746, allocations: 8.938 kB / 328.8 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.004911, allocations: 141.6 kB / 328.9 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.004927, allocations: 4.375 kB / 328.9 MB, free: 4.082 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.004949, allocations: 8.375 kB / 329 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.005055, allocations: 73.59 kB / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.005064, allocations: 192 / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.005075, allocations: 8.375 kB / 329 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.005085, allocations: 3.938 kB / 329 MB, free: 3.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.491e-05/0.005119, allocations: 19.92 kB / 329.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003439/0.005463, allocations: 220.7 kB / 329.3 MB, free: 3.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.255e-05/0.005526, allocations: 30.56 kB / 329.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.358e-05/0.005539, allocations: 8.859 kB / 329.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.005547, allocations: 0 / 329.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.781e-05/0.005635, allocations: 67.36 kB / 329.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 2.424e-06/0.005637, allocations: 3.984 kB / 329.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001132/0.005751, allocations: 61.56 kB / 329.4 MB, free: 3.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.005782, allocations: 51.41 kB / 329.5 MB, free: 3.473 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.118e-05/0.005843, allocations: 131.5 kB / 329.6 MB, free: 3.332 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.005854, allocations: 25.7 kB / 329.6 MB, free: 3.301 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.857e-05/0.005893, allocations: 116.3 kB / 329.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.005912, allocations: 7.906 kB / 329.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.005942, allocations: 29.69 kB / 329.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.006016, allocations: 322.8 kB / 330.1 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.006029, allocations: 7.984 kB / 330.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.664e-05/0.006055, allocations: 34.12 kB / 330.2 MB, free: 2.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.393e-05/0.006099, allocations: 38.5 kB / 330.2 MB, free: 2.723 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.006102, allocations: 4 kB / 330.2 MB, free: 2.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.909e-05/0.006181, allocations: 65.61 kB / 330.3 MB, free: 2.648 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.006192, allocations: 4 kB / 330.3 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.006197, allocations: 0 / 330.3 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.00621, allocations: 4 kB / 330.3 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.625e-05/0.006267, allocations: 15.92 kB / 330.3 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.966e-06/0.006269, allocations: 0 / 330.3 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.1e-05/0.0063, allocations: 8 kB / 330.3 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.006305, allocations: 0 / 330.3 MB, free: 2.617 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.234e-05/0.006367, allocations: 125.7 kB / 330.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-06/0.006376, allocations: 7.984 kB / 330.4 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.464e-05/0.006401, allocations: 16.5 kB / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.006402, allocations: 0 / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.006404, allocations: 0 / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.006407, allocations: 0 / 330.4 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.006592, allocations: 227 kB / 330.7 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.006594, allocations: 4 kB / 330.7 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.239e-05/0.006627, allocations: 4 kB / 330.7 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.006628, allocations: 0 / 330.7 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.006637, allocations: 4 kB / 330.7 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.006639, allocations: 4 kB / 330.7 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.006639, allocations: 3.938 kB / 330.7 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.00675, allocations: 163.4 kB / 330.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.141e-05/0.006761, allocations: 11.95 kB / 330.8 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-06/0.006771, allocations: 0 / 330.8 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-05/0.006813, allocations: 4 kB / 330.9 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.006849, allocations: 7.984 kB / 330.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.006856, allocations: 3.984 kB / 330.9 MB, free: 1.992 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.329e-05/0.006879, allocations: 23.14 kB / 330.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006879, allocations: 0 / 330.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001241/0.007003, allocations: 12 kB / 330.9 MB, free: 1.957 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 8.579e-05/0.007089, allocations: 88.38 kB / 331 MB, free: 1.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.65e-05/0.007165, allocations: 40.77 kB / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.007168, allocations: 0 / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.832e-05/0.007197, allocations: 16.86 kB / 331 MB, free: 1.801 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.007374, allocations: 19.98 kB / 331.1 MB, free: 1.781 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000336/0.00771, allocations: 189.4 kB / 331.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.784e-05/0.007748, allocations: 63.34 kB / 331.3 MB, free: 1.488 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.84e-05/0.007776, allocations: 4 kB / 331.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.007833, allocations: 71.47 kB / 331.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.007834, allocations: 0 / 331.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of Templates: time 0.002496/0.01033, allocations: 0.9325 MB / 332.3 MB, free: 0.5039 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 -s gbode -gbm=radauIIA3 -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.92320145200938]