Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001414/0.001414, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001952/0.001952, allocations: 206.9 kB / 23.73 MB, free: 4.379 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.616/1.616, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2577/0.2577, allocations: 46.95 MB / 360.9 MB, free: 4.055 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 67.84 kB / 0.4966 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4302, allocations: 66.04 MB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003286/0.4335, allocations: 1.6 MB / 0.5626 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.4346, allocations: 499.7 kB / 0.5631 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.19e-05/0.4346, allocations: 4 kB / 0.5631 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.4348, allocations: 11.86 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.238e-05/0.4348, allocations: 11.88 kB / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002061/0.435, allocations: 35.89 kB / 0.5632 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.4352, allocations: 79.77 kB / 0.5632 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.4353, allocations: 26.89 kB / 0.5633 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.444e-05/0.4354, allocations: 31.86 kB / 0.5633 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.475e-05/0.4355, allocations: 27.86 kB / 0.5633 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.4355, allocations: 8 kB / 0.5633 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.334e-05/0.4355, allocations: 4 kB / 0.5633 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.716e-05/0.4355, allocations: 27.84 kB / 0.5634 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.4356, allocations: 31.8 kB / 0.5634 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.4357, allocations: 67.44 kB / 0.5635 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4357, allocations: 0 / 0.5635 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4357, allocations: 0 / 0.5635 GB, free: 1.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.4357, allocations: 3.938 kB / 0.5635 GB, free: 1.73 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.0006433/0.4364, allocations: 330.8 kB / 0.5638 GB, free: 1.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4364, allocations: 8.031 kB / 0.5638 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.403e-05/0.4365, allocations: 12.89 kB / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.4367, allocations: 146.3 kB / 0.5639 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.4368, allocations: 4.375 kB / 0.5639 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.4368, allocations: 12.38 kB / 0.564 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.437, allocations: 69.98 kB / 0.564 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.437, allocations: 0 / 0.564 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.437, allocations: 4 kB / 0.564 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.437, allocations: 8 kB / 0.564 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.196e-05/0.4371, allocations: 39.97 kB / 0.5641 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.4377, allocations: 272.3 kB / 0.5643 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.4378, allocations: 46.52 kB / 0.5644 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.4379, allocations: 20.92 kB / 0.5644 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.4379, allocations: 0 / 0.5644 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.438, allocations: 71.38 kB / 0.5645 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.438, allocations: 0 / 0.5645 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002898/0.4383, allocations: 89.56 kB / 0.5646 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.4384, allocations: 55.34 kB / 0.5646 GB, free: 440 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.4386, allocations: 125.8 kB / 0.5647 GB, free: 304 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.4386, allocations: 33.7 kB / 0.5648 GB, free: 264 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/0.4387, allocations: 96.31 kB / 0.5648 GB, free: 164 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.4387, allocations: 19.98 kB / 0.5649 GB, free: 144 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.4387, allocations: 29.7 kB / 0.5649 GB, free: 108 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.439, allocations: 318.8 kB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.264e-05/0.439, allocations: 19.92 kB / 0.5652 GB, free: 15.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.363e-05/0.4391, allocations: 38.56 kB / 0.5653 GB, free: 15.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.363e-05/0.4392, allocations: 58.45 kB / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4392, allocations: 0 / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001392/0.4393, allocations: 85.56 kB / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.4393, allocations: 8 kB / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.4393, allocations: 0 / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.4393, allocations: 0 / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.67e-05/0.4394, allocations: 11.98 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.4394, allocations: 3.938 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.328e-05/0.4395, allocations: 15.89 kB / 0.5654 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.4395, allocations: 8.062 kB / 0.5654 GB, free: 15.52 MB / 414.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.0001102/0.4396, allocations: 113.8 kB / 0.5655 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.4396, allocations: 11.94 kB / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.4397, allocations: 12.38 kB / 0.5656 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4397, allocations: 0 / 0.5656 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.4397, allocations: 3.938 kB / 0.5656 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4397, allocations: 0 / 0.5656 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.44, allocations: 282.2 kB / 0.5658 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.44, allocations: 0 / 0.5658 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.192e-05/0.4401, allocations: 7.984 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4401, allocations: 4 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.4401, allocations: 11.94 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4401, allocations: 3.984 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4401, allocations: 0 / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.4403, allocations: 180.1 kB / 0.566 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.05e-05/0.4403, allocations: 15.88 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.4404, allocations: 3.938 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.4405, allocations: 11.94 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-05/0.4405, allocations: 11.98 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.4405, allocations: 4 kB / 0.5661 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.142e-05/0.4406, allocations: 95.33 kB / 0.5662 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4406, allocations: 3.938 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.4408, allocations: 16 kB / 0.5662 GB, free: 14.67 MB / 414.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 0.0001001/0.4409, allocations: 95.23 kB / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001467/0.4411, allocations: 51.91 kB / 0.5663 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4411, allocations: 192 / 0.5663 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.051e-05/0.4411, allocations: 16 kB / 0.5664 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.4414, allocations: 23.34 kB / 0.5664 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006368/0.4421, allocations: 218.6 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.4422, allocations: 79.19 kB / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.813e-05/0.4422, allocations: 7.984 kB / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.4422, allocations: 15.38 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4422, allocations: 0 / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of Templates: time 0.003849/0.4461, allocations: 0.9575 MB / 0.5676 GB, free: 13.19 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.396953683812171]