Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",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.001346/0.001346, allocations: 108.8 kB / 17.78 MB, free: 5.266 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.001292/0.001292, allocations: 184.1 kB / 18.71 MB, free: 4.34 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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.232/0.232, allocations: 44.18 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4347, allocations: 60.83 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003996/0.4388, allocations: 1.887 MB / 0.5203 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.4406, allocations: 1.034 MB / 0.5213 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.4408, allocations: 2.344 kB / 0.5213 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007267/0.4415, allocations: 178.2 kB / 0.5214 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.4419, allocations: 132.3 kB / 0.5216 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.4424, allocations: 201.2 kB / 0.5218 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.4428, allocations: 275.7 kB / 0.522 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.4429, allocations: 35.73 kB / 0.5221 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.4431, allocations: 107.9 kB / 0.5222 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.4433, allocations: 115.6 kB / 0.5223 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.4434, allocations: 17.94 kB / 0.5223 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.4435, allocations: 64.28 kB / 0.5223 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.4437, allocations: 66.5 kB / 0.5224 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.4438, allocations: 101.8 kB / 0.5225 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.4443, allocations: 277 kB / 0.5228 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4443, allocations: 4 kB / 0.5228 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4443, allocations: 0 / 0.5228 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.4443, allocations: 9.25 kB / 0.5228 GB, free: 0.5938 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0009489/0.4452, allocations: 0.6693 MB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4453, allocations: 9.766 kB / 0.5234 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.042e-05/0.4454, allocations: 42.8 kB / 0.5235 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.4455, allocations: 29.2 kB / 0.5235 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.4458, allocations: 286.3 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.446, allocations: 96.84 kB / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.446, allocations: 15.62 kB / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.4464, allocations: 152.8 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4464, allocations: 0 / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.4464, allocations: 8.375 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4464, allocations: 2.891 kB / 0.5241 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.4467, allocations: 93.56 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.4476, allocations: 0.6048 MB / 0.5247 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.448, allocations: 180 kB / 0.5249 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.4482, allocations: 87.02 kB / 0.525 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.4482, allocations: 2.609 kB / 0.525 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005568/0.4488, allocations: 434.3 kB / 0.5254 GB, free: 14.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.4488, allocations: 0 / 0.5254 GB, free: 14.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009097/0.4497, allocations: 444.4 kB / 0.5258 GB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.4499, allocations: 225.4 kB / 0.526 GB, free: 13.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.4502, allocations: 318 kB / 0.5263 GB, free: 13.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.4503, allocations: 34.53 kB / 0.5264 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4504, allocations: 133.1 kB / 0.5265 GB, free: 13.53 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.815e-05/0.4505, allocations: 56.77 kB / 0.5266 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.403e-05/0.4506, allocations: 53.06 kB / 0.5266 GB, free: 13.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.4507, allocations: 333.7 kB / 0.5269 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.4509, allocations: 61.55 kB / 0.527 GB, free: 13.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.4511, allocations: 139.3 kB / 0.5271 GB, free: 12.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.4516, allocations: 357.8 kB / 0.5275 GB, free: 12.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4516, allocations: 4.844 kB / 0.5275 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005571/0.4521, allocations: 350.6 kB / 0.5278 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.233e-05/0.4522, allocations: 96.66 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.4522, allocations: 2.844 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4523, allocations: 3 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.4524, allocations: 22.77 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.4524, allocations: 7.422 kB / 0.5279 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.4526, allocations: 24.48 kB / 0.5279 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.4526, allocations: 9.734 kB / 0.528 GB, free: 12.33 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002742/0.4529, allocations: 268.6 kB / 0.5282 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.4529, allocations: 38.52 kB / 0.5283 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/0.453, allocations: 29.14 kB / 0.5283 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.453, allocations: 2.438 kB / 0.5283 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.453, allocations: 5.062 kB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.453, allocations: 2.469 kB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.4534, allocations: 289.3 kB / 0.5286 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4534, allocations: 5.5 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.916e-05/0.4534, allocations: 4.594 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4534, allocations: 6.094 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.4535, allocations: 10.02 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.4535, allocations: 1.438 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4535, allocations: 0 / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.4542, allocations: 450.7 kB / 0.529 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.634e-05/0.4543, allocations: 109.4 kB / 0.5291 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.4543, allocations: 12.81 kB / 0.5291 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.4545, allocations: 15.05 kB / 0.5292 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.4545, allocations: 21.12 kB / 0.5292 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.4546, allocations: 20.3 kB / 0.5292 GB, free: 11.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002442/0.4548, allocations: 233.7 kB / 0.5294 GB, free: 11.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4548, allocations: 0 / 0.5294 GB, free: 11.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.4552, allocations: 64.67 kB / 0.5295 GB, free: 11.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.002429/0.4576, allocations: 1.308 MB / 0.5308 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005935/0.4582, allocations: 388.1 kB / 0.5311 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4582, allocations: 0 / 0.5311 GB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.4586, allocations: 354.7 kB / 0.5315 GB, free: 9.691 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.459, allocations: 43.52 kB / 0.5315 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.4627, allocations: 2.833 MB / 0.5343 GB, free: 7.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.4631, allocations: 0.7626 MB / 0.535 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.4632, allocations: 24.25 kB / 0.535 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.4634, allocations: 67.5 kB / 0.5351 GB, free: 6.754 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4634, allocations: 4 kB / 0.5351 GB, free: 6.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.4938, allocations: 6.148 MB / 0.5411 GB, free: 3.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.324/8.818, allocations: 7.562 kB / 0.5411 GB, free: 3.555 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches