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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009738/0.0009739, allocations: 97.31 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3335/0.3335, allocations: 44.84 MB / 392.7 MB, free: 34.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 59.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3181, allocations: 62.02 MB / 0.5151 GB, free: 37.61 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002603/0.3208, allocations: 1.678 MB / 0.5168 GB, free: 36.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007781/0.3216, allocations: 0.5042 MB / 0.5173 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.568e-05/0.3217, allocations: 2.562 kB / 0.5173 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.3218, allocations: 7.125 kB / 0.5173 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.91e-05/0.3218, allocations: 6.469 kB / 0.5173 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.322, allocations: 40.11 kB / 0.5173 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.3221, allocations: 70.05 kB / 0.5174 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3222, allocations: 29.09 kB / 0.5174 GB, free: 36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.682e-05/0.3223, allocations: 35.84 kB / 0.5175 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.3223, allocations: 31.81 kB / 0.5175 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.3224, allocations: 5.656 kB / 0.5175 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.256e-05/0.3224, allocations: 2.875 kB / 0.5175 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.35e-05/0.3224, allocations: 18.03 kB / 0.5175 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.3225, allocations: 32.42 kB / 0.5175 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.06e-05/0.3225, allocations: 72.58 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3226, allocations: 4 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.3226, allocations: 2.906 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.3226, allocations: 0 / 0.5176 GB, free: 35.89 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.0004617/0.323, allocations: 385 kB / 0.518 GB, free: 35.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.3231, allocations: 8.75 kB / 0.518 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.685e-05/0.3231, allocations: 10.56 kB / 0.518 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.3233, allocations: 195.2 kB / 0.5182 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.3233, allocations: 9.906 kB / 0.5182 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.3233, allocations: 9.875 kB / 0.5182 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.3235, allocations: 77.05 kB / 0.5183 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3235, allocations: 2.844 kB / 0.5183 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-06/0.3235, allocations: 0 / 0.5183 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.3235, allocations: 3.25 kB / 0.5183 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.035e-05/0.3236, allocations: 33.84 kB / 0.5183 GB, free: 35.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004621/0.324, allocations: 355.8 kB / 0.5187 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.936e-05/0.3241, allocations: 50.91 kB / 0.5187 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.984e-05/0.3242, allocations: 17.17 kB / 0.5187 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.3242, allocations: 0 / 0.5187 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.3244, allocations: 71.61 kB / 0.5188 GB, free: 34.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.3244, allocations: 4 kB / 0.5188 GB, free: 34.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001822/0.3246, allocations: 87.97 kB / 0.5189 GB, free: 34.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.3246, allocations: 54.64 kB / 0.5189 GB, free: 34.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.971e-05/0.3247, allocations: 140.5 kB / 0.5191 GB, free: 34.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.3247, allocations: 25.7 kB / 0.5191 GB, free: 34.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.3247, allocations: 102.3 kB / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.3248, allocations: 17.95 kB / 0.5192 GB, free: 34.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.3248, allocations: 30.19 kB / 0.5192 GB, free: 34.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.546e-05/0.3249, allocations: 325.2 kB / 0.5195 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.506e-05/0.3249, allocations: 16.05 kB / 0.5196 GB, free: 34.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.162e-05/0.3249, allocations: 41.17 kB / 0.5196 GB, free: 34.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.258e-05/0.325, allocations: 54.23 kB / 0.5197 GB, free: 34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.325, allocations: 0 / 0.5197 GB, free: 34 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001075/0.3251, allocations: 86.42 kB / 0.5197 GB, free: 33.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3252, allocations: 5.75 kB / 0.5197 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3252, allocations: 0 / 0.5197 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.3252, allocations: 10.16 kB / 0.5198 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.179e-05/0.3253, allocations: 5.188 kB / 0.5198 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.3253, allocations: 0 / 0.5198 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.249e-05/0.3253, allocations: 20.61 kB / 0.5198 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.3253, allocations: 2.969 kB / 0.5198 GB, free: 33.93 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 8.183e-05/0.3254, allocations: 124 kB / 0.5199 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.3255, allocations: 9.188 kB / 0.5199 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.99e-05/0.3255, allocations: 12.66 kB / 0.5199 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3255, allocations: 2.625 kB / 0.5199 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3255, allocations: 3.281 kB / 0.5199 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.3255, allocations: 0 / 0.5199 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.3257, allocations: 347.9 kB / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3258, allocations: 0 / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-05/0.3258, allocations: 5.594 kB / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3258, allocations: 7.984 kB / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.3258, allocations: 4 kB / 0.5203 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3258, allocations: 3.328 kB / 0.5203 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3258, allocations: 2.844 kB / 0.5203 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009353/0.3268, allocations: 1.141 MB / 0.5214 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.835e-05/0.3268, allocations: 87.77 kB / 0.5215 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.3269, allocations: 9.984 kB / 0.5215 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.327, allocations: 2.938 kB / 0.5215 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.3271, allocations: 6.312 kB / 0.5215 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.3271, allocations: 2.562 kB / 0.5215 GB, free: 32.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.677e-05/0.3271, allocations: 105.6 kB / 0.5216 GB, free: 32.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3271, allocations: 0 / 0.5216 GB, free: 32.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000299/0.3274, allocations: 32.09 kB / 0.5216 GB, free: 32.14 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 8.464e-05/0.3275, allocations: 97.44 kB / 0.5217 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.3276, allocations: 48 kB / 0.5218 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3277, allocations: 2.906 kB / 0.5218 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/0.3277, allocations: 21.16 kB / 0.5218 GB, free: 32.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.328, allocations: 18.05 kB / 0.5218 GB, free: 32.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.3285, allocations: 351.5 kB / 0.5221 GB, free: 31.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.3286, allocations: 0.6962 MB / 0.5228 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.191e-05/0.3287, allocations: 17.47 kB / 0.5228 GB, free: 31.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.3287, allocations: 13.25 kB / 0.5229 GB, free: 31.01 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3287, allocations: 0 / 0.5229 GB, free: 31.01 MB / 378.7 MB Notification: Performance of Templates: time 0.002848/0.3316, allocations: 0.9329 MB / 0.5238 GB, free: 30.91 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches