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.0009534/0.0009534, allocations: 83.67 kB / 21.7 MB, free: 2.852 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.001124/0.001124, allocations: 160.2 kB / 24.99 MB, free: 9.289 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.941/0.941, allocations: 177 MB / 205.2 MB, free: 5.613 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.2492/0.2492, allocations: 34.86 MB / 296.6 MB, free: 0.5664 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 2.425e-06/2.425e-06, allocations: 0 / 378.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.69e-05/2.933e-05, allocations: 2.875 kB / 378.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003184/0.003213, allocations: 1.658 MB / 380.4 MB, free: 0.75 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008899/0.004103, allocations: 0.4947 MB / 380.9 MB, free: 256 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.363e-05/0.004197, allocations: 3.938 kB / 380.9 MB, free: 252 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.004334, allocations: 7.938 kB / 380.9 MB, free: 244 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.7e-05/0.004391, allocations: 15.8 kB / 380.9 MB, free: 228 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.004605, allocations: 43.83 kB / 381 MB, free: 184 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001513/0.004757, allocations: 79.77 kB / 381 MB, free: 104 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.004876, allocations: 20.2 kB / 381.1 MB, free: 80 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.359e-05/0.00495, allocations: 43.84 kB / 381.1 MB, free: 36 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.281e-05/0.005012, allocations: 19.97 kB / 381.1 MB, free: 16 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.005037, allocations: 8 kB / 381.1 MB, free: 8 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.493e-05/0.005052, allocations: 8 kB / 381.1 MB, free: 0 / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/0.005078, allocations: 16.05 kB / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.483e-05/0.005123, allocations: 27.91 kB / 381.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.005264, allocations: 55.69 kB / 381.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005266, allocations: 0 / 381.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.005268, allocations: 4 kB / 381.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.005272, allocations: 0 / 381.2 MB, free: 15.89 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.000536/0.005808, allocations: 428 kB / 381.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.005846, allocations: 12.03 kB / 381.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.005901, allocations: 20.89 kB / 381.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.006088, allocations: 132.5 kB / 381.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.006107, allocations: 4.375 kB / 381.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.006132, allocations: 12.36 kB / 381.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.006281, allocations: 81.41 kB / 381.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.006289, allocations: 192 / 381.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.006303, allocations: 4.375 kB / 381.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.006312, allocations: 3.938 kB / 381.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.078e-05/0.006373, allocations: 19.98 kB / 381.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.006863, allocations: 339.4 kB / 382.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.945e-05/0.006963, allocations: 47.05 kB / 382.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.958e-05/0.006992, allocations: 15.72 kB / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.007, allocations: 0 / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001149/0.007115, allocations: 73.03 kB / 382.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.007117, allocations: 0 / 382.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002074/0.007324, allocations: 73.61 kB / 382.5 MB, free: 14.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.007366, allocations: 59.41 kB / 382.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.007478, allocations: 173.9 kB / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.007497, allocations: 33.69 kB / 382.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.068e-05/0.007568, allocations: 155.1 kB / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.007593, allocations: 15.89 kB / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.00764, allocations: 35.31 kB / 382.9 MB, free: 14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.00778, allocations: 0.4922 MB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.216e-05/0.007812, allocations: 15.94 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.841e-05/0.00786, allocations: 39.05 kB / 383.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.818e-05/0.007928, allocations: 47.06 kB / 383.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.007931, allocations: 0 / 383.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001336/0.008064, allocations: 93.48 kB / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.008079, allocations: 6.656 kB / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.008085, allocations: 4 kB / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.008102, allocations: 0 / 383.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.148e-05/0.008174, allocations: 8 kB / 383.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.008179, allocations: 0 / 383.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.74e-05/0.008227, allocations: 8 kB / 383.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.008235, allocations: 7.938 kB / 383.7 MB, free: 13.24 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 8.741e-05/0.008323, allocations: 164.6 kB / 383.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.839e-05/0.008341, allocations: 11.89 kB / 383.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.00837, allocations: 12.5 kB / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.008375, allocations: 7.984 kB / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.008378, allocations: 0 / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.008381, allocations: 0 / 383.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003054/0.008687, allocations: 333.3 kB / 384.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.008688, allocations: 0 / 384.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.359e-05/0.008732, allocations: 7.984 kB / 384.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.008734, allocations: 0 / 384.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.008745, allocations: 7.938 kB / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.008747, allocations: 0 / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.00875, allocations: 3.938 kB / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.008944, allocations: 232.4 kB / 384.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.008958, allocations: 11.95 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.008974, allocations: 0 / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.671e-05/0.009051, allocations: 4 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.009096, allocations: 11.92 kB / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.009104, allocations: 4 kB / 384.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.164e-05/0.009166, allocations: 139.5 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009166, allocations: 4 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002703/0.009436, allocations: 12 kB / 384.6 MB, free: 12.22 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 8.684e-05/0.009523, allocations: 107.5 kB / 384.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.00964, allocations: 39.67 kB / 384.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.009642, allocations: 0 / 384.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.935e-05/0.009691, allocations: 31.61 kB / 384.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.01001, allocations: 15.98 kB / 384.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.01039, allocations: 202.2 kB / 385 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.363e-05/0.01043, allocations: 63.34 kB / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.398e-05/0.01047, allocations: 8 kB / 385.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.0105, allocations: 16.62 kB / 385.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of SimCode: time 5.92e-07/0.0105, allocations: 0 / 385.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of Templates: time 0.003147/0.01365, allocations: 0.9258 MB / 386 MB, free: 10.77 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.8942598649300635]