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.001066/0.001066, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001242/0.001242, allocations: 179.1 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2148/0.2148, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 67.83 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3027, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002658/0.3054, allocations: 1.882 MB / 0.5203 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.3068, allocations: 1.03 MB / 0.5213 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.178e-05/0.3069, allocations: 2.25 kB / 0.5213 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005589/0.3074, allocations: 190.7 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002769/0.3077, allocations: 125 kB / 0.5216 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.3082, allocations: 197.7 kB / 0.5218 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.3085, allocations: 275 kB / 0.522 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.3086, allocations: 36.3 kB / 0.522 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.3087, allocations: 111.9 kB / 0.5222 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.3089, allocations: 115.8 kB / 0.5223 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.3089, allocations: 17.75 kB / 0.5223 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.3091, allocations: 59.92 kB / 0.5223 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.384e-05/0.3091, allocations: 66.44 kB / 0.5224 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.869e-05/0.3092, allocations: 110.9 kB / 0.5225 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.3096, allocations: 276.8 kB / 0.5228 GB, free: 0.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3096, allocations: 0 / 0.5228 GB, free: 0.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3096, allocations: 0 / 0.5228 GB, free: 0.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3096, allocations: 5.312 kB / 0.5228 GB, free: 0.5781 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.0007906/0.3104, allocations: 0.6642 MB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3105, allocations: 14.09 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.04e-05/0.3105, allocations: 51.44 kB / 0.5235 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.132e-05/0.3106, allocations: 28.23 kB / 0.5235 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.3109, allocations: 274.8 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.025e-05/0.311, allocations: 93.8 kB / 0.5239 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.3111, allocations: 16.34 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003163/0.3114, allocations: 160.8 kB / 0.524 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3114, allocations: 0 / 0.524 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.3115, allocations: 9.188 kB / 0.524 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3115, allocations: 2.375 kB / 0.524 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.3117, allocations: 88.66 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.3125, allocations: 0.6129 MB / 0.5247 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.3129, allocations: 179.8 kB / 0.5249 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.3131, allocations: 91.23 kB / 0.525 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3131, allocations: 2.031 kB / 0.525 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.3135, allocations: 444.5 kB / 0.5254 GB, free: 14.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.3135, allocations: 0 / 0.5254 GB, free: 14.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008256/0.3144, allocations: 430.9 kB / 0.5258 GB, free: 14.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.3145, allocations: 222.3 kB / 0.526 GB, free: 13.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.3148, allocations: 325.8 kB / 0.5263 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.3149, allocations: 38.56 kB / 0.5264 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.859e-05/0.315, allocations: 131.7 kB / 0.5265 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/0.315, allocations: 53.34 kB / 0.5266 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.3151, allocations: 52.27 kB / 0.5266 GB, free: 13.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.3152, allocations: 338.1 kB / 0.5269 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.3154, allocations: 55.02 kB / 0.527 GB, free: 13.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3156, allocations: 144.8 kB / 0.5271 GB, free: 12.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.316, allocations: 358.5 kB / 0.5275 GB, free: 12.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.316, allocations: 0 / 0.5275 GB, free: 12.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005334/0.3165, allocations: 342.3 kB / 0.5278 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.965e-05/0.3166, allocations: 97.09 kB / 0.5279 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3166, allocations: 10.09 kB / 0.5279 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.3167, allocations: 4.266 kB / 0.5279 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3168, allocations: 18.45 kB / 0.5279 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3168, allocations: 7.859 kB / 0.5279 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.3169, allocations: 28.62 kB / 0.528 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.317, allocations: 14.16 kB / 0.528 GB, free: 12.3 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.0002269/0.3172, allocations: 268.2 kB / 0.5282 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.677e-05/0.3173, allocations: 33.98 kB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.3173, allocations: 29.42 kB / 0.5283 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3173, allocations: 3.219 kB / 0.5283 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3174, allocations: 5.375 kB / 0.5283 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3174, allocations: 1.078 kB / 0.5283 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.3177, allocations: 286.2 kB / 0.5286 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3177, allocations: 3.938 kB / 0.5286 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-05/0.3177, allocations: 5 kB / 0.5286 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3177, allocations: 3.328 kB / 0.5286 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.3177, allocations: 20.17 kB / 0.5286 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3178, allocations: 1.5 kB / 0.5286 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3178, allocations: 0.7969 kB / 0.5286 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006443/0.3184, allocations: 452.8 kB / 0.529 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.934e-05/0.3185, allocations: 101.1 kB / 0.5291 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.3186, allocations: 16.75 kB / 0.5291 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3187, allocations: 15.75 kB / 0.5292 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.442e-05/0.3188, allocations: 24.06 kB / 0.5292 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.3188, allocations: 9.312 kB / 0.5292 GB, free: 11.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.319, allocations: 238.1 kB / 0.5294 GB, free: 11.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.319, allocations: 0 / 0.5294 GB, free: 11.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.3194, allocations: 63.62 kB / 0.5295 GB, free: 11.2 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.001777/0.3212, allocations: 1.306 MB / 0.5308 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005909/0.3218, allocations: 392.2 kB / 0.5311 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3218, allocations: 0 / 0.5311 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.3222, allocations: 345 kB / 0.5315 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.3225, allocations: 58.86 kB / 0.5315 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.326, allocations: 2.839 MB / 0.5343 GB, free: 7.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.3263, allocations: 0.7594 MB / 0.535 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.3264, allocations: 30.61 kB / 0.5351 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.3265, allocations: 64.69 kB / 0.5351 GB, free: 6.715 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3265, allocations: 0 / 0.5351 GB, free: 6.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.3493, allocations: 6.132 MB / 0.5411 GB, free: 3.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/8.407, allocations: 17.92 kB / 0.5411 GB, free: 3.523 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