Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001595/0.001595, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001987/0.001987, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 76.16 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3918, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003204/0.395, allocations: 1.918 MB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.397, allocations: 1.181 MB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.3971, allocations: 5.719 kB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007016/0.3979, allocations: 190.3 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004201/0.3983, allocations: 163 kB / 0.5339 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.3987, allocations: 169.1 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.3991, allocations: 286.6 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3992, allocations: 29.7 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.3994, allocations: 121.8 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.3995, allocations: 119.8 kB / 0.5346 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.3996, allocations: 17.88 kB / 0.5346 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.3997, allocations: 66.58 kB / 0.5347 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.375e-05/0.3998, allocations: 61.81 kB / 0.5347 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.3999, allocations: 113.7 kB / 0.5348 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003498/0.4003, allocations: 281.2 kB / 0.5351 GB, free: 9.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.4003, allocations: 0 / 0.5351 GB, free: 9.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4003, allocations: 3.938 kB / 0.5351 GB, free: 9.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4003, allocations: 1.375 kB / 0.5351 GB, free: 9.969 MB / 398.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.0009319/0.4012, allocations: 0.6752 MB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.4013, allocations: 9.688 kB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.4013, allocations: 41.12 kB / 0.5358 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.4014, allocations: 28.95 kB / 0.5358 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003639/0.4018, allocations: 286 kB / 0.5361 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.288e-05/0.4019, allocations: 95.11 kB / 0.5362 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.4019, allocations: 20.12 kB / 0.5362 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.4023, allocations: 165.4 kB / 0.5364 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.4023, allocations: 1.5 kB / 0.5364 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.4023, allocations: 7.406 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4023, allocations: 2.719 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.4026, allocations: 83.91 kB / 0.5365 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009217/0.4035, allocations: 0.6083 MB / 0.5371 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.4038, allocations: 175.8 kB / 0.5372 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.404, allocations: 99.5 kB / 0.5373 GB, free: 7.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.4041, allocations: 6.203 kB / 0.5373 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000402/0.4045, allocations: 430 kB / 0.5377 GB, free: 7.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.4045, allocations: 0 / 0.5377 GB, free: 7.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008209/0.4053, allocations: 440.5 kB / 0.5382 GB, free: 7.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.4054, allocations: 216.3 kB / 0.5384 GB, free: 6.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.4057, allocations: 334 kB / 0.5387 GB, free: 6.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.4058, allocations: 35.08 kB / 0.5387 GB, free: 6.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.199e-05/0.4059, allocations: 135 kB / 0.5388 GB, free: 6.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.082e-05/0.4059, allocations: 52.7 kB / 0.5389 GB, free: 6.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-05/0.406, allocations: 55.41 kB / 0.5389 GB, free: 6.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4062, allocations: 342.8 kB / 0.5393 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.4063, allocations: 52.84 kB / 0.5393 GB, free: 6.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.4065, allocations: 145.4 kB / 0.5395 GB, free: 6.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.4069, allocations: 358.5 kB / 0.5398 GB, free: 5.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.4069, allocations: 0 / 0.5398 GB, free: 5.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005231/0.4074, allocations: 355.5 kB / 0.5401 GB, free: 5.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.433e-05/0.4075, allocations: 96.28 kB / 0.5402 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4075, allocations: 2.156 kB / 0.5402 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.4075, allocations: 3.156 kB / 0.5402 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.4076, allocations: 24.33 kB / 0.5403 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.4077, allocations: 2.656 kB / 0.5403 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.4078, allocations: 28.69 kB / 0.5403 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.4078, allocations: 14.38 kB / 0.5403 GB, free: 5.297 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.0002279/0.4081, allocations: 274.3 kB / 0.5406 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/0.4081, allocations: 33.3 kB / 0.5406 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.4082, allocations: 26.67 kB / 0.5406 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.4082, allocations: 3.125 kB / 0.5406 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4082, allocations: 0 / 0.5406 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.4082, allocations: 1.281 kB / 0.5406 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.4085, allocations: 292.3 kB / 0.5409 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4085, allocations: 9.375 kB / 0.5409 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-05/0.4085, allocations: 8.469 kB / 0.5409 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4085, allocations: 5.312 kB / 0.5409 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.4085, allocations: 7.312 kB / 0.5409 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.247e-06/0.4086, allocations: 5.266 kB / 0.5409 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4086, allocations: 1.312 kB / 0.5409 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006473/0.4092, allocations: 446.2 kB / 0.5414 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.973e-05/0.4093, allocations: 107.5 kB / 0.5415 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.4094, allocations: 8.594 kB / 0.5415 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.4095, allocations: 19.36 kB / 0.5415 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.4096, allocations: 16.23 kB / 0.5415 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.4096, allocations: 18.19 kB / 0.5415 GB, free: 4.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.4098, allocations: 238.8 kB / 0.5418 GB, free: 4.105 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4098, allocations: 4 kB / 0.5418 GB, free: 4.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.4102, allocations: 72.42 kB / 0.5418 GB, free: 4.086 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.001732/0.4119, allocations: 1.3 MB / 0.5431 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005466/0.4124, allocations: 396.1 kB / 0.5435 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4125, allocations: 0 / 0.5435 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/0.4128, allocations: 341.1 kB / 0.5438 GB, free: 2.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.4132, allocations: 56.98 kB / 0.5439 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.4166, allocations: 2.866 MB / 0.5467 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.417, allocations: 0.7582 MB / 0.5474 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.4171, allocations: 30.2 kB / 0.5474 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4172, allocations: 67.41 kB / 0.5475 GB, free: 15.5 MB / 414.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4172, allocations: 0 / 0.5475 GB, free: 15.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.4417, allocations: 6.234 MB / 0.5536 GB, free: 9.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.003/8.445, allocations: 6.938 kB / 0.5536 GB, free: 9.336 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches