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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2038/0.2038, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 71.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3526, allocations: 60.82 MB / 0.5184 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002602/0.3552, allocations: 1.612 MB / 0.52 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007869/0.3561, allocations: 492.3 kB / 0.5205 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.614e-05/0.3562, allocations: 1.469 kB / 0.5205 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.3563, allocations: 10.64 kB / 0.5205 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.187e-05/0.3564, allocations: 18.89 kB / 0.5205 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.3566, allocations: 36.17 kB / 0.5205 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001441/0.3567, allocations: 77.7 kB / 0.5206 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.3569, allocations: 32.72 kB / 0.5206 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.431e-05/0.3569, allocations: 38.02 kB / 0.5207 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.917e-05/0.357, allocations: 28.75 kB / 0.5207 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.357, allocations: 6.5 kB / 0.5207 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.3571, allocations: 7 kB / 0.5207 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.005e-05/0.3571, allocations: 17.41 kB / 0.5207 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.003e-05/0.3572, allocations: 36.62 kB / 0.5208 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.3573, allocations: 73.94 kB / 0.5208 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3573, allocations: 1.469 kB / 0.5208 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3573, allocations: 0 / 0.5208 GB, free: 1.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3574, allocations: 4 kB / 0.5208 GB, free: 1.875 MB / 382.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.0005508/0.3579, allocations: 395.1 kB / 0.5212 GB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.358, allocations: 10.34 kB / 0.5212 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.397e-05/0.358, allocations: 39.2 kB / 0.5213 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/0.3581, allocations: 10.3 kB / 0.5213 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.3583, allocations: 194.5 kB / 0.5214 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.3583, allocations: 7.625 kB / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.3584, allocations: 10.5 kB / 0.5215 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.3585, allocations: 79.88 kB / 0.5215 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.3586, allocations: 3.938 kB / 0.5215 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.3586, allocations: 6.016 kB / 0.5215 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.3586, allocations: 1.938 kB / 0.5216 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.914e-05/0.3587, allocations: 31.64 kB / 0.5216 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005458/0.3592, allocations: 354.4 kB / 0.5219 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3593, allocations: 51.56 kB / 0.522 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.3594, allocations: 17.69 kB / 0.522 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.168e-06/0.3594, allocations: 0 / 0.522 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.3595, allocations: 69.91 kB / 0.5221 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3595, allocations: 1.312 kB / 0.5221 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002461/0.3598, allocations: 92.36 kB / 0.5221 GB, free: 0.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.3598, allocations: 57.55 kB / 0.5222 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.36, allocations: 142.9 kB / 0.5223 GB, free: 496 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.36, allocations: 27.61 kB / 0.5224 GB, free: 464 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.442e-05/0.36, allocations: 97.67 kB / 0.5225 GB, free: 368 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.3601, allocations: 20.64 kB / 0.5225 GB, free: 352 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.536e-05/0.3601, allocations: 27.83 kB / 0.5225 GB, free: 328 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.292e-05/0.3602, allocations: 320.7 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.924e-05/0.3602, allocations: 18.22 kB / 0.5228 GB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.306e-05/0.3603, allocations: 41.12 kB / 0.5229 GB, free: 15.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.365e-05/0.3604, allocations: 46.02 kB / 0.5229 GB, free: 15.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3604, allocations: 0 / 0.5229 GB, free: 15.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001494/0.3606, allocations: 92.62 kB / 0.523 GB, free: 15.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3606, allocations: 5.75 kB / 0.523 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3606, allocations: 12.91 kB / 0.523 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3606, allocations: 1.969 kB / 0.523 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.354e-05/0.3607, allocations: 11.27 kB / 0.523 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3607, allocations: 1.75 kB / 0.523 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.87e-05/0.3608, allocations: 14.05 kB / 0.523 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.3608, allocations: 4.547 kB / 0.523 GB, free: 15.84 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,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 9.917e-05/0.3609, allocations: 117.6 kB / 0.5232 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.3609, allocations: 7.453 kB / 0.5232 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.361, allocations: 20.02 kB / 0.5232 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.361, allocations: 2.188 kB / 0.5232 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.361, allocations: 0.875 kB / 0.5232 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.361, allocations: 3.828 kB / 0.5232 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003901/0.3614, allocations: 349.2 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3614, allocations: 0 / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.3615, allocations: 4.344 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3615, allocations: 2.031 kB / 0.5235 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.3615, allocations: 5.188 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3615, allocations: 0.7031 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3615, allocations: 4 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.3618, allocations: 198.1 kB / 0.5237 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.3618, allocations: 83.98 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.3618, allocations: 1.672 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.36e-05/0.3619, allocations: 5.938 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.362, allocations: 10.53 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.362, allocations: 6.609 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.965e-05/0.3621, allocations: 108 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3621, allocations: 0 / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.3624, allocations: 16.52 kB / 0.5239 GB, free: 15 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,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 0.0004963/0.3629, allocations: 0.7232 MB / 0.5247 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.363, allocations: 52.27 kB / 0.5247 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.363, allocations: 4.062 kB / 0.5247 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.578e-05/0.3631, allocations: 19.28 kB / 0.5247 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.3635, allocations: 16.14 kB / 0.5247 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.3651, allocations: 1.527 MB / 0.5262 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3654, allocations: 0.6974 MB / 0.5269 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.03e-05/0.3655, allocations: 8.219 kB / 0.5269 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.3655, allocations: 27.59 kB / 0.5269 GB, free: 12.22 MB / 398.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3655, allocations: 112 / 0.5269 GB, free: 12.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.3866, allocations: 2.247 MB / 0.5291 GB, free: 11.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.304, allocations: 5.984 kB / 0.5291 GB, free: 11.51 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/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) Reference file matches