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.001295/0.001295, allocations: 111 kB / 17.33 MB, free: 6.004 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.001151/0.001151, allocations: 193.3 kB / 18.25 MB, free: 5.094 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.478/1.478, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2338/0.2338, allocations: 44.18 MB / 336.3 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 65.12 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1179, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003251/0.1211, allocations: 1.939 MB / 470.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.1227, allocations: 1.021 MB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1228, allocations: 4 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004974/0.1233, allocations: 171.6 kB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.1236, allocations: 119.7 kB / 472.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.1241, allocations: 178.1 kB / 472.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1244, allocations: 279.3 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.68e-05/0.1245, allocations: 33.69 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1247, allocations: 115.6 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.1248, allocations: 115.6 kB / 472.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.1249, allocations: 16 kB / 472.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.125, allocations: 55.97 kB / 472.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.498e-05/0.1251, allocations: 63.81 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1252, allocations: 111.4 kB / 473 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.1255, allocations: 275.4 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1255, allocations: 0 / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1255, allocations: 8 kB / 473.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1256, allocations: 0 / 473.3 MB, free: 10.15 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.0007945/0.1264, allocations: 0.6494 MB / 473.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.1264, allocations: 12.03 kB / 473.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.1264, allocations: 42.73 kB / 474 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.45e-05/0.1265, allocations: 28.66 kB / 474 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.1268, allocations: 274.7 kB / 474.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.284e-05/0.1269, allocations: 105.4 kB / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.1269, allocations: 19.94 kB / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/0.1272, allocations: 154.5 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1272, allocations: 3.938 kB / 474.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.1273, allocations: 4 kB / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.1273, allocations: 4 kB / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.1275, allocations: 99.86 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007195/0.1282, allocations: 0.6024 MB / 475.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.1286, allocations: 175.9 kB / 475.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.1288, allocations: 98.47 kB / 475.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.1288, allocations: 4 kB / 475.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003875/0.1292, allocations: 429.2 kB / 476 MB, free: 7.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.1292, allocations: 0 / 476 MB, free: 7.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007627/0.13, allocations: 442.3 kB / 476.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.988e-05/0.1301, allocations: 217.6 kB / 476.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.1304, allocations: 316.9 kB / 476.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1304, allocations: 37.69 kB / 477 MB, free: 6.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.817e-05/0.1305, allocations: 128.7 kB / 477.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.1306, allocations: 55.34 kB / 477.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.1306, allocations: 45.7 kB / 477.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1308, allocations: 338.8 kB / 477.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.1309, allocations: 55.97 kB / 477.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.1311, allocations: 146.7 kB / 477.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.1315, allocations: 367 kB / 478.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1315, allocations: 0 / 478.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004974/0.132, allocations: 350 kB / 478.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/0.1321, allocations: 101.1 kB / 478.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.1321, allocations: 0 / 478.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.1321, allocations: 4 kB / 478.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.967e-05/0.1322, allocations: 24.16 kB / 478.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.1322, allocations: 11.98 kB / 478.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1323, allocations: 19.84 kB / 478.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.1323, allocations: 12 kB / 478.6 MB, free: 4.273 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.0001927/0.1325, allocations: 273.5 kB / 478.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.132e-05/0.1326, allocations: 31.66 kB / 478.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.1327, allocations: 25.7 kB / 478.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-05/0.1327, allocations: 8 kB / 478.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.1327, allocations: 0 / 478.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1327, allocations: 0 / 478.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.133, allocations: 289.5 kB / 479.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.133, allocations: 3.938 kB / 479.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.047e-05/0.133, allocations: 7.938 kB / 479.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.133, allocations: 0 / 479.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.133, allocations: 15.98 kB / 479.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.1331, allocations: 11.92 kB / 479.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1331, allocations: 4 kB / 479.2 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005821/0.1336, allocations: 447 kB / 479.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.1337, allocations: 104.8 kB / 479.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.991e-05/0.1338, allocations: 12 kB / 479.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.1339, allocations: 15.98 kB / 479.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.134, allocations: 23.92 kB / 479.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.134, allocations: 16 kB / 479.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.1342, allocations: 232.4 kB / 480.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1342, allocations: 0 / 480.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.1345, allocations: 67.94 kB / 480.1 MB, free: 2.586 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.001633/0.1362, allocations: 1.305 MB / 481.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005057/0.1367, allocations: 398 kB / 481.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1367, allocations: 0 / 481.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.137, allocations: 346.5 kB / 482.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.1373, allocations: 48.39 kB / 482.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003181/0.1405, allocations: 2.877 MB / 485.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.1408, allocations: 0.7478 MB / 485.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.187e-05/0.1409, allocations: 29.53 kB / 485.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.141, allocations: 67.41 kB / 485.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1411, allocations: 4 kB / 485.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.034/2.175, allocations: 5.824 MB / 491.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003249/2.175, allocations: 222.9 kB / 492 MB, free: 6.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/4.3, allocations: 4.062 kB / 492 MB, free: 6.641 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