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.00114/0.00114, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001287/0.001287, allocations: 192 kB / 18.55 MB, free: 4.566 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.3 MB, free: 15.19 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.2252/0.2252, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 62.8 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004067/0.1203, allocations: 1.878 MB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.1222, allocations: 1.033 MB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1223, allocations: 4 kB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007001/0.123, allocations: 179.5 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003441/0.1234, allocations: 131.5 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000529/0.1239, allocations: 202.6 kB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.1243, allocations: 279.3 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1245, allocations: 25.66 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002772/0.1248, allocations: 115.7 kB / 473.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.1251, allocations: 111.6 kB / 473.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/0.1251, allocations: 19.98 kB / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.1253, allocations: 59.92 kB / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1255, allocations: 63.83 kB / 473.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1256, allocations: 111.4 kB / 473.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000502/0.1261, allocations: 271.4 kB / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1261, allocations: 0 / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1262, allocations: 0 / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.1262, allocations: 0 / 473.8 MB, free: 9.805 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.001249/0.1274, allocations: 0.6639 MB / 474.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1275, allocations: 8.031 kB / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.1276, allocations: 42.75 kB / 474.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.57e-05/0.1277, allocations: 32.66 kB / 474.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.1281, allocations: 274.8 kB / 474.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.1282, allocations: 101.4 kB / 474.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.1282, allocations: 12 kB / 474.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/0.1286, allocations: 164.9 kB / 475.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1286, allocations: 0 / 475.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1286, allocations: 8 kB / 475.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1286, allocations: 0 / 475.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.1289, allocations: 95.86 kB / 475.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008507/0.1297, allocations: 0.6023 MB / 475.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.1301, allocations: 183.9 kB / 476 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.1302, allocations: 94.53 kB / 476.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.1303, allocations: 4 kB / 476.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/0.1307, allocations: 429.1 kB / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.1308, allocations: 0 / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008233/0.1316, allocations: 438.3 kB / 476.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.1317, allocations: 225.6 kB / 477.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.1321, allocations: 316.9 kB / 477.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.1321, allocations: 33.7 kB / 477.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1322, allocations: 132.7 kB / 477.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.1323, allocations: 55.28 kB / 477.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.917e-05/0.1324, allocations: 49.7 kB / 477.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1325, allocations: 338.8 kB / 478 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.1327, allocations: 59.91 kB / 478.1 MB, free: 5.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.1329, allocations: 138.3 kB / 478.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.1333, allocations: 354.7 kB / 478.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1333, allocations: 0 / 478.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005314/0.1338, allocations: 362.4 kB / 478.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.195e-05/0.1339, allocations: 97.09 kB / 479 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1339, allocations: 4 kB / 479 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.134, allocations: 0 / 479 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.1341, allocations: 19.98 kB / 479.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1341, allocations: 7.938 kB / 479.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1342, allocations: 32.05 kB / 479.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.1343, allocations: 12 kB / 479.1 MB, free: 3.918 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.0002502/0.1345, allocations: 265.5 kB / 479.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.86e-05/0.1346, allocations: 31.66 kB / 479.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.812e-05/0.1347, allocations: 29.7 kB / 479.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1347, allocations: 0 / 479.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1347, allocations: 3.938 kB / 479.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1347, allocations: 8 kB / 479.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.135, allocations: 285.5 kB / 479.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.135, allocations: 3.938 kB / 479.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.854e-05/0.135, allocations: 4 kB / 479.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.135, allocations: 4 kB / 479.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.1351, allocations: 8 kB / 479.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1351, allocations: 0 / 479.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1351, allocations: 0 / 479.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006274/0.1357, allocations: 456.9 kB / 480.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.018e-05/0.1358, allocations: 100.8 kB / 480.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.1359, allocations: 12 kB / 480.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.136, allocations: 15.98 kB / 480.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.1361, allocations: 23.97 kB / 480.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.1361, allocations: 12 kB / 480.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.1363, allocations: 236.4 kB / 480.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1363, allocations: 4 kB / 480.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1367, allocations: 63.94 kB / 480.6 MB, free: 2.246 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.001763/0.1384, allocations: 1.303 MB / 481.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005619/0.139, allocations: 394 kB / 482.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.139, allocations: 8 kB / 482.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.1394, allocations: 334.1 kB / 482.7 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/0.1398, allocations: 71.45 kB / 482.7 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.1434, allocations: 2.84 MB / 485.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.1437, allocations: 0.7556 MB / 486.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.1438, allocations: 25.53 kB / 486.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1439, allocations: 67.42 kB / 486.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.144, allocations: 3.938 kB / 486.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.169, allocations: 6.025 MB / 492.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/7.888, allocations: 13.59 kB / 492.5 MB, free: 6.352 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 & 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