Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2459/0.2459, allocations: 44.93 MB / 359.6 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 71.89 kB / 0.4942 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3361, allocations: 65.47 MB / 0.5582 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003228/0.3393, allocations: 1.613 MB / 0.5598 GB, free: 5.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009964/0.3403, allocations: 495.8 kB / 0.5602 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.062e-05/0.3404, allocations: 0 / 0.5602 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.3405, allocations: 15.86 kB / 0.5602 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.3406, allocations: 11.88 kB / 0.5602 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.3408, allocations: 35.91 kB / 0.5603 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.3409, allocations: 79.75 kB / 0.5604 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.341, allocations: 23.88 kB / 0.5604 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.106e-05/0.3411, allocations: 35.8 kB / 0.5604 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.509e-05/0.3412, allocations: 27.84 kB / 0.5604 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.3412, allocations: 4 kB / 0.5604 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.67e-05/0.3412, allocations: 8 kB / 0.5605 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.3412, allocations: 15.92 kB / 0.5605 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.03e-05/0.3413, allocations: 35.86 kB / 0.5605 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.3414, allocations: 70.39 kB / 0.5606 GB, free: 5.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.3414, allocations: 0 / 0.5606 GB, free: 5.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3414, allocations: 0 / 0.5606 GB, free: 5.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.3414, allocations: 0 / 0.5606 GB, free: 5.016 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.0005939/0.342, allocations: 334.8 kB / 0.5609 GB, free: 4.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3421, allocations: 8.031 kB / 0.5609 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.247e-05/0.3421, allocations: 8.891 kB / 0.5609 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.3424, allocations: 146.3 kB / 0.561 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.3424, allocations: 4.375 kB / 0.5611 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.3424, allocations: 8.375 kB / 0.5611 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.3426, allocations: 77.98 kB / 0.5611 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3426, allocations: 0 / 0.5611 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.3426, allocations: 0 / 0.5611 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3426, allocations: 0 / 0.5611 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.998e-05/0.3427, allocations: 43.91 kB / 0.5612 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.3432, allocations: 276.3 kB / 0.5614 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.3433, allocations: 50.61 kB / 0.5615 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.3434, allocations: 16.83 kB / 0.5615 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.3434, allocations: 0 / 0.5615 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.3435, allocations: 67.39 kB / 0.5616 GB, free: 3.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3435, allocations: 0 / 0.5616 GB, free: 3.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002233/0.3437, allocations: 89.56 kB / 0.5617 GB, free: 3.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.3438, allocations: 59.33 kB / 0.5617 GB, free: 3.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.3439, allocations: 125.8 kB / 0.5618 GB, free: 3.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.3439, allocations: 25.7 kB / 0.5619 GB, free: 3.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.58e-05/0.344, allocations: 100.3 kB / 0.5619 GB, free: 3.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.344, allocations: 19.98 kB / 0.562 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.3441, allocations: 29.7 kB / 0.562 GB, free: 3.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3442, allocations: 326.8 kB / 0.5623 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.703e-05/0.3442, allocations: 12 kB / 0.5623 GB, free: 3.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.561e-05/0.3443, allocations: 42.5 kB / 0.5624 GB, free: 3.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.391e-05/0.3444, allocations: 50.88 kB / 0.5624 GB, free: 2.945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3444, allocations: 0 / 0.5624 GB, free: 2.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001337/0.3445, allocations: 89.56 kB / 0.5625 GB, free: 2.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.3445, allocations: 8.062 kB / 0.5625 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.3445, allocations: 4 kB / 0.5625 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3445, allocations: 3.938 kB / 0.5625 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.046e-05/0.3446, allocations: 15.92 kB / 0.5625 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.3446, allocations: 3.938 kB / 0.5625 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.962e-05/0.3447, allocations: 7.953 kB / 0.5625 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.3447, allocations: 4 kB / 0.5625 GB, free: 2.805 MB / 398.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,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 0.0001032/0.3448, allocations: 121.8 kB / 0.5627 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.3448, allocations: 11.95 kB / 0.5627 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.337e-05/0.3448, allocations: 8.375 kB / 0.5627 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3448, allocations: 4 kB / 0.5627 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3449, allocations: 11.94 kB / 0.5627 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3449, allocations: 0 / 0.5627 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.3452, allocations: 274.2 kB / 0.563 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3452, allocations: 0 / 0.563 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.628e-05/0.3452, allocations: 8 kB / 0.563 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3452, allocations: 0 / 0.563 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.3452, allocations: 7.922 kB / 0.563 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3452, allocations: 0 / 0.563 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3452, allocations: 192 / 0.563 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.3455, allocations: 195.4 kB / 0.5632 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.594e-05/0.3455, allocations: 19.92 kB / 0.5632 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.3455, allocations: 3.938 kB / 0.5632 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-05/0.3456, allocations: 4 kB / 0.5632 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.146e-05/0.3456, allocations: 11.98 kB / 0.5632 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.3456, allocations: 3.984 kB / 0.5632 GB, free: 2.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.3457, allocations: 91.28 kB / 0.5633 GB, free: 1.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3457, allocations: 0 / 0.5633 GB, free: 1.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.3459, allocations: 19.98 kB / 0.5633 GB, free: 1.953 MB / 398.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,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 9.997e-05/0.346, allocations: 92.02 kB / 0.5634 GB, free: 1.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.3462, allocations: 51.92 kB / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3462, allocations: 0 / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.527e-05/0.3462, allocations: 23.94 kB / 0.5635 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.3465, allocations: 26.67 kB / 0.5635 GB, free: 1.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.3471, allocations: 232.2 kB / 0.5637 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.628e-05/0.3472, allocations: 87.17 kB / 0.5638 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/0.3472, allocations: 15.56 kB / 0.5638 GB, free: 1.383 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3472, allocations: 0 / 0.5638 GB, free: 1.383 MB / 398.1 MB Notification: Performance of Templates: time 0.002897/0.3501, allocations: 1.124 MB / 0.5649 GB, free: 264 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 7.593845721334219]