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.000822/0.0008221, allocations: 88.86 kB / 17.35 MB, free: 6.027 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.0009045/0.0009045, allocations: 178.5 kB / 18.26 MB, free: 5.387 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.188/1.188, allocations: 223.3 MB / 242.3 MB, free: 72 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1758/0.1758, allocations: 44.24 MB / 337.7 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 8.969 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08849, allocations: 61.92 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001853/0.09037, allocations: 1.596 MB / 474 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.09169, allocations: 1.002 MB / 475 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.304e-05/0.09177, allocations: 4 kB / 475 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004848/0.09226, allocations: 171.6 kB / 475.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.09249, allocations: 119.6 kB / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.09287, allocations: 170.5 kB / 475.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.09312, allocations: 259.3 kB / 475.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.455e-05/0.09322, allocations: 37.66 kB / 475.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.09334, allocations: 95.62 kB / 475.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.09347, allocations: 107.6 kB / 475.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.0935, allocations: 4 kB / 475.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.09362, allocations: 47.97 kB / 475.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.696e-05/0.0937, allocations: 59.75 kB / 476 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.9e-05/0.09381, allocations: 125.2 kB / 476.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.09408, allocations: 263.3 kB / 476.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.09409, allocations: 0 / 476.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.0941, allocations: 0 / 476.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.09411, allocations: 0 / 476.4 MB, free: 9.18 MB / 350.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.0007235/0.09483, allocations: 0.6184 MB / 477 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.09487, allocations: 8.031 kB / 477 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.069e-05/0.09493, allocations: 42.73 kB / 477.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.09499, allocations: 28.66 kB / 477.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.09527, allocations: 278.7 kB / 477.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.28e-05/0.09537, allocations: 101.4 kB / 477.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.004e-05/0.0954, allocations: 16 kB / 477.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.09568, allocations: 160.9 kB / 477.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.0957, allocations: 0 / 477.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.09572, allocations: 4 kB / 477.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.09573, allocations: 4 kB / 477.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.09595, allocations: 103.9 kB / 477.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006903/0.09665, allocations: 0.6102 MB / 478.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.09697, allocations: 175.9 kB / 478.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.09714, allocations: 94.55 kB / 478.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.09716, allocations: 4 kB / 478.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000381/0.09755, allocations: 441 kB / 479 MB, free: 6.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.09756, allocations: 0 / 479 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007425/0.09831, allocations: 446.7 kB / 479.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.343e-05/0.09841, allocations: 213.6 kB / 479.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.09872, allocations: 324.9 kB / 480 MB, free: 5.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.09875, allocations: 29.7 kB / 480 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.09884, allocations: 136.7 kB / 480.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.09889, allocations: 47.36 kB / 480.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.09894, allocations: 33.7 kB / 480.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.09905, allocations: 342.8 kB / 480.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.09918, allocations: 55.97 kB / 480.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.09938, allocations: 156.7 kB / 480.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/0.09974, allocations: 367 kB / 481.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.09975, allocations: 8 kB / 481.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004846/0.1002, allocations: 354 kB / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.1003, allocations: 93.09 kB / 481.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1003, allocations: 4 kB / 481.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1003, allocations: 4 kB / 481.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.873e-05/0.1004, allocations: 28.14 kB / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1004, allocations: 4 kB / 481.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.1006, allocations: 27.92 kB / 481.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1006, allocations: 8 kB / 481.7 MB, free: 3.312 MB / 350.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.0002078/0.1008, allocations: 265.4 kB / 481.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.1009, allocations: 35.56 kB / 482 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.1009, allocations: 33.7 kB / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1009, allocations: 192 / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1009, allocations: 0 / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.101, allocations: 11.97 kB / 482 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002544/0.1012, allocations: 281.5 kB / 482.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1012, allocations: 0 / 482.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.948e-05/0.1013, allocations: 15.88 kB / 482.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1013, allocations: 3.984 kB / 482.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.1013, allocations: 8 kB / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1013, allocations: 0 / 482.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1013, allocations: 8 kB / 482.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005907/0.1019, allocations: 451.4 kB / 482.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.102, allocations: 100.8 kB / 482.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.102, allocations: 15.94 kB / 482.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.1021, allocations: 27.92 kB / 482.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.1022, allocations: 23.97 kB / 482.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.1023, allocations: 8 kB / 482.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.1025, allocations: 236.4 kB / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1025, allocations: 0 / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.1028, allocations: 67.94 kB / 483.2 MB, free: 1.617 MB / 350.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.001559/0.1043, allocations: 1.304 MB / 484.5 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004861/0.1048, allocations: 394 kB / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1048, allocations: 0 / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.1052, allocations: 346.3 kB / 485.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1055, allocations: 60.77 kB / 485.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.1086, allocations: 2.888 MB / 488.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1089, allocations: 0.7554 MB / 489 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.747e-05/0.109, allocations: 25.55 kB / 489 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.273e-05/0.1091, allocations: 63.41 kB / 489 MB, free: 11.64 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1091, allocations: 0 / 489 MB, free: 11.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.1432, allocations: 5.434 MB / 494.5 MB, free: 6.316 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/0.1434, allocations: 220.2 kB / 494.7 MB, free: 6.062 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/1.86, allocations: 0 / 494.7 MB, free: 6.062 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 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.mat","/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