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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 98.62 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3823/0.3823, allocations: 44.13 MB / 386.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 51.92 kB / 457.7 MB, free: 2.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3349, allocations: 60.8 MB / 0.5064 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002443/0.3373, allocations: 1.671 MB / 0.508 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006841/0.338, allocations: 485.8 kB / 0.5085 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.262e-05/0.3381, allocations: 1.281 kB / 0.5085 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.3383, allocations: 8.359 kB / 0.5085 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.173e-05/0.3383, allocations: 8.969 kB / 0.5085 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.3385, allocations: 37.27 kB / 0.5085 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.3386, allocations: 78.92 kB / 0.5086 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.3388, allocations: 22.22 kB / 0.5086 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.935e-05/0.3388, allocations: 34.58 kB / 0.5087 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.3389, allocations: 24.12 kB / 0.5087 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.118e-05/0.3389, allocations: 6.688 kB / 0.5087 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.3389, allocations: 2.781 kB / 0.5087 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.489e-05/0.339, allocations: 25.75 kB / 0.5087 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.436e-05/0.339, allocations: 30.86 kB / 0.5087 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.656e-05/0.3391, allocations: 62.33 kB / 0.5088 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.3391, allocations: 0 / 0.5088 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.3391, allocations: 0 / 0.5088 GB, free: 36.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.3391, allocations: 0 / 0.5088 GB, free: 36.6 MB / 378.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.0004786/0.3396, allocations: 391.5 kB / 0.5092 GB, free: 36.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.3397, allocations: 12.47 kB / 0.5092 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.3397, allocations: 10.47 kB / 0.5092 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.3398, allocations: 198.3 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.3399, allocations: 7.281 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.3399, allocations: 6.125 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.34, allocations: 76.58 kB / 0.5095 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.34, allocations: 0 / 0.5095 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3401, allocations: 0 / 0.5095 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3401, allocations: 3.312 kB / 0.5095 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.3402, allocations: 40.33 kB / 0.5095 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00044/0.3406, allocations: 355 kB / 0.5099 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.3407, allocations: 56.83 kB / 0.5099 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.744e-05/0.3408, allocations: 14.83 kB / 0.5099 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.3408, allocations: 2.781 kB / 0.5099 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001259/0.3409, allocations: 77.92 kB / 0.51 GB, free: 35.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3409, allocations: 0 / 0.51 GB, free: 35.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001987/0.3411, allocations: 91.97 kB / 0.5101 GB, free: 35.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.294e-05/0.3412, allocations: 51.41 kB / 0.5101 GB, free: 35.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.144e-05/0.3413, allocations: 135.4 kB / 0.5103 GB, free: 35.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.3413, allocations: 31.61 kB / 0.5103 GB, free: 35.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.327e-05/0.3413, allocations: 98.88 kB / 0.5104 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.3413, allocations: 26.05 kB / 0.5104 GB, free: 35.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.3414, allocations: 21.34 kB / 0.5104 GB, free: 35.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.987e-05/0.3414, allocations: 324.9 kB / 0.5107 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.595e-05/0.3415, allocations: 19.48 kB / 0.5108 GB, free: 34.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.777e-05/0.3415, allocations: 35.09 kB / 0.5108 GB, free: 34.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.023e-05/0.3416, allocations: 53.02 kB / 0.5108 GB, free: 34.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3416, allocations: 0 / 0.5108 GB, free: 34.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001088/0.3417, allocations: 90.44 kB / 0.5109 GB, free: 34.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3417, allocations: 7.312 kB / 0.5109 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3417, allocations: 0 / 0.5109 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.3418, allocations: 3.938 kB / 0.5109 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.393e-05/0.3418, allocations: 15.72 kB / 0.511 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3418, allocations: 0 / 0.511 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.751e-05/0.3419, allocations: 16.94 kB / 0.511 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.3419, allocations: 6.812 kB / 0.511 GB, free: 34.61 MB / 378.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.467e-05/0.342, allocations: 115.7 kB / 0.5111 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.342, allocations: 2.688 kB / 0.5111 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.342, allocations: 18.91 kB / 0.5111 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.3421, allocations: 0 / 0.5111 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3421, allocations: 0 / 0.5111 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.175e-06/0.3421, allocations: 0 / 0.5111 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.3423, allocations: 352.7 kB / 0.5114 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3423, allocations: 4 kB / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.494e-05/0.3424, allocations: 6.406 kB / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3424, allocations: 6.969 kB / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.3424, allocations: 0 / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3424, allocations: 0 / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3424, allocations: 0 / 0.5115 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/0.3432, allocations: 1.152 MB / 0.5126 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.3432, allocations: 83.92 kB / 0.5127 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.3433, allocations: 0 / 0.5127 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.3433, allocations: 10.3 kB / 0.5127 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.3434, allocations: 6.266 kB / 0.5127 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.3434, allocations: 2.812 kB / 0.5127 GB, free: 32.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.347e-05/0.3435, allocations: 112.8 kB / 0.5128 GB, free: 32.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3435, allocations: 0 / 0.5128 GB, free: 32.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002895/0.3438, allocations: 23.06 kB / 0.5128 GB, free: 32.84 MB / 378.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 7.118e-05/0.3438, allocations: 96.47 kB / 0.5129 GB, free: 32.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.3439, allocations: 45.3 kB / 0.513 GB, free: 32.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3439, allocations: 0 / 0.513 GB, free: 32.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.456e-05/0.344, allocations: 34.88 kB / 0.513 GB, free: 32.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.3443, allocations: 12.81 kB / 0.513 GB, free: 32.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004943/0.3448, allocations: 369.6 kB / 0.5134 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.3449, allocations: 0.7054 MB / 0.514 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.69e-05/0.345, allocations: 9.703 kB / 0.514 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.345, allocations: 10.31 kB / 0.5141 GB, free: 31.7 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.345, allocations: 0 / 0.5141 GB, free: 31.7 MB / 378.7 MB Notification: Performance of Templates: time 0.002839/0.3479, allocations: 0.9371 MB / 0.515 GB, free: 31.6 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches