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.001421/0.001421, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001517/0.001517, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.585/1.585, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2382/0.2382, allocations: 44.93 MB / 358.8 MB, free: 6.043 MB / 286.1 MB " [Timeout remaining time 180] 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.002413/0.002413, allocations: 63.91 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3441, allocations: 65.48 MB / 0.5574 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003175/0.3473, allocations: 1.603 MB / 0.559 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3484, allocations: 499.8 kB / 0.5595 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.659e-05/0.3485, allocations: 0 / 0.5595 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3486, allocations: 7.875 kB / 0.5595 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.521e-05/0.3487, allocations: 19.86 kB / 0.5595 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000209/0.3489, allocations: 31.91 kB / 0.5595 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.349, allocations: 75.77 kB / 0.5596 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.3492, allocations: 27.88 kB / 0.5596 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.209e-05/0.3492, allocations: 31.86 kB / 0.5597 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.69e-05/0.3493, allocations: 31.78 kB / 0.5597 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.3493, allocations: 4 kB / 0.5597 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.877e-05/0.3493, allocations: 8 kB / 0.5597 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.784e-05/0.3494, allocations: 23.91 kB / 0.5597 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.001e-05/0.3494, allocations: 27.86 kB / 0.5598 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.3496, allocations: 70.39 kB / 0.5598 GB, free: 4.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3496, allocations: 0 / 0.5598 GB, free: 4.891 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3496, allocations: 0 / 0.5598 GB, free: 4.891 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3496, allocations: 8 kB / 0.5598 GB, free: 4.883 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.0006383/0.3503, allocations: 330.8 kB / 0.5602 GB, free: 4.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.3503, allocations: 8.031 kB / 0.5602 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.3503, allocations: 8.891 kB / 0.5602 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.3506, allocations: 134.4 kB / 0.5603 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.3506, allocations: 8.375 kB / 0.5603 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.3506, allocations: 8.359 kB / 0.5603 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.3508, allocations: 81.92 kB / 0.5604 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3508, allocations: 0 / 0.5604 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3509, allocations: 4 kB / 0.5604 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3509, allocations: 4 kB / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.577e-05/0.3509, allocations: 31.98 kB / 0.5604 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000573/0.3515, allocations: 284.3 kB / 0.5607 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.3516, allocations: 50.48 kB / 0.5607 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.287e-05/0.3517, allocations: 12.89 kB / 0.5608 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3517, allocations: 0 / 0.5608 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001373/0.3518, allocations: 71.38 kB / 0.5608 GB, free: 3.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3518, allocations: 4 kB / 0.5608 GB, free: 3.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002258/0.3521, allocations: 93.59 kB / 0.5609 GB, free: 3.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.3521, allocations: 55.34 kB / 0.561 GB, free: 3.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.3522, allocations: 129.8 kB / 0.5611 GB, free: 3.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3522, allocations: 25.7 kB / 0.5611 GB, free: 3.414 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.3523, allocations: 100.3 kB / 0.5612 GB, free: 3.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.3523, allocations: 19.97 kB / 0.5612 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.3524, allocations: 21.72 kB / 0.5613 GB, free: 3.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3525, allocations: 326.8 kB / 0.5616 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.019e-05/0.3526, allocations: 19.92 kB / 0.5616 GB, free: 2.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.814e-05/0.3526, allocations: 38.52 kB / 0.5616 GB, free: 2.871 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.44e-05/0.3527, allocations: 54.56 kB / 0.5617 GB, free: 2.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.3527, allocations: 0 / 0.5617 GB, free: 2.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001417/0.3529, allocations: 89.56 kB / 0.5618 GB, free: 2.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.3529, allocations: 4 kB / 0.5618 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3529, allocations: 4 kB / 0.5618 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3529, allocations: 0 / 0.5618 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.507e-05/0.353, allocations: 11.94 kB / 0.5618 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.353, allocations: 3.938 kB / 0.5618 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.433e-05/0.353, allocations: 16 kB / 0.5618 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.353, allocations: 4 kB / 0.5618 GB, free: 2.672 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 9.699e-05/0.3531, allocations: 120 kB / 0.5619 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.3532, allocations: 7.953 kB / 0.5619 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.3532, allocations: 8.375 kB / 0.5619 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3532, allocations: 7.984 kB / 0.5619 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3532, allocations: 3.938 kB / 0.5619 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3532, allocations: 0 / 0.5619 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.3535, allocations: 278.2 kB / 0.5622 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3535, allocations: 3.938 kB / 0.5622 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.3536, allocations: 8 kB / 0.5622 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3536, allocations: 0 / 0.5622 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3536, allocations: 3.938 kB / 0.5622 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3536, allocations: 0 / 0.5622 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3536, allocations: 4 kB / 0.5622 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.3538, allocations: 191.4 kB / 0.5624 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.3538, allocations: 11.92 kB / 0.5624 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.3538, allocations: 3.938 kB / 0.5624 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.3539, allocations: 11.98 kB / 0.5624 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.354, allocations: 11.98 kB / 0.5625 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.354, allocations: 4.062 kB / 0.5625 GB, free: 1.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.69e-05/0.3541, allocations: 95.27 kB / 0.5625 GB, free: 1.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3541, allocations: 0 / 0.5625 GB, free: 1.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000236/0.3543, allocations: 16 kB / 0.5626 GB, free: 1.828 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.261e-05/0.3544, allocations: 92.02 kB / 0.5626 GB, free: 1.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001392/0.3545, allocations: 48.47 kB / 0.5627 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3545, allocations: 4.188 kB / 0.5627 GB, free: 1.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.72e-05/0.3546, allocations: 23.92 kB / 0.5627 GB, free: 1.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.3549, allocations: 28.3 kB / 0.5627 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005101/0.3554, allocations: 206.5 kB / 0.5629 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.571e-05/0.3555, allocations: 83.19 kB / 0.563 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.843e-05/0.3555, allocations: 7.984 kB / 0.563 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.3556, allocations: 15.42 kB / 0.563 GB, free: 1.281 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3556, allocations: 0 / 0.563 GB, free: 1.281 MB / 398.1 MB Notification: Performance of Templates: time 0.003744/0.3593, allocations: 0.9483 MB / 0.564 GB, free: 360 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/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_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: 5.240943968296051]