Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_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.001188/0.001187, allocations: 104.2 kB / 16.27 MB, free: 5.949 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.001054/0.001054, allocations: 189 kB / 17.19 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2232/0.2232, allocations: 43.53 MB / 313.9 MB, free: 0.543 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001595, allocations: 67.27 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1245, allocations: 57.78 MB / 440.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002903/0.1274, allocations: 1.883 MB / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.1286, allocations: 0.9636 MB / 443.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.929e-05/0.1287, allocations: 0 / 443.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.1293, allocations: 187.4 kB / 443.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.1295, allocations: 131.5 kB / 443.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.1299, allocations: 167.5 kB / 443.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000222/0.1301, allocations: 279.3 kB / 444.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.1302, allocations: 41.88 kB / 444.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.1303, allocations: 103.7 kB / 444.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.1305, allocations: 119.5 kB / 444.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.1305, allocations: 16 kB / 444.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.1306, allocations: 59.97 kB / 444.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.1307, allocations: 59.83 kB / 444.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.1308, allocations: 111.4 kB / 444.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.1311, allocations: 271.1 kB / 445 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1311, allocations: 8 kB / 445 MB, free: 2.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1311, allocations: 0 / 445 MB, free: 2.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1311, allocations: 0 / 445 MB, free: 2.438 MB / 318.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.0007546/0.1319, allocations: 0.661 MB / 445.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.132, allocations: 11.89 kB / 445.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.777e-05/0.132, allocations: 46.73 kB / 445.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.042e-05/0.1321, allocations: 28.66 kB / 445.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.1323, allocations: 274.8 kB / 446 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.06e-05/0.1324, allocations: 101.4 kB / 446.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.1324, allocations: 19.94 kB / 446.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/0.1327, allocations: 157 kB / 446.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1327, allocations: 0 / 446.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.1327, allocations: 4 kB / 446.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.1328, allocations: 7.938 kB / 446.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.133, allocations: 91.94 kB / 446.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006184/0.1336, allocations: 0.6024 MB / 447 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.1339, allocations: 175.9 kB / 447.1 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.1341, allocations: 90.55 kB / 447.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.1341, allocations: 11.94 kB / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.1345, allocations: 427.1 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.853e-06/0.1346, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008845/0.1354, allocations: 454.2 kB / 448.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1356, allocations: 213.6 kB / 448.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.1359, allocations: 320.9 kB / 448.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.1359, allocations: 33.7 kB / 448.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.136, allocations: 132.6 kB / 448.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/0.1361, allocations: 51.34 kB / 448.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.302e-05/0.1361, allocations: 49.7 kB / 448.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1363, allocations: 342.8 kB / 449.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.1364, allocations: 59.97 kB / 449.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.1366, allocations: 134.3 kB / 449.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.137, allocations: 366.6 kB / 449.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.137, allocations: 0 / 449.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005199/0.1375, allocations: 354.7 kB / 450.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.533e-05/0.1376, allocations: 89.09 kB / 450.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.1376, allocations: 4 kB / 450.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1376, allocations: 8.203 kB / 450.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1377, allocations: 31.92 kB / 450.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1377, allocations: 0 / 450.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.1379, allocations: 23.89 kB / 450.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.1379, allocations: 12 kB / 450.3 MB, free: 12.55 MB / 334.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.0001982/0.1381, allocations: 265.4 kB / 450.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.175e-05/0.1382, allocations: 39.64 kB / 450.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.1382, allocations: 25.72 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1382, allocations: 0 / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1382, allocations: 4 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.1383, allocations: 3.984 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.1385, allocations: 285.4 kB / 450.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1385, allocations: 3.938 kB / 450.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.1386, allocations: 15.98 kB / 450.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1386, allocations: 0 / 450.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1386, allocations: 8 kB / 450.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1386, allocations: 3.938 kB / 450.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1386, allocations: 0 / 450.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006131/0.1393, allocations: 451.3 kB / 451.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.494e-05/0.1393, allocations: 108.7 kB / 451.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.1394, allocations: 8 kB / 451.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1395, allocations: 19.98 kB / 451.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.1396, allocations: 19.98 kB / 451.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.1396, allocations: 19.98 kB / 451.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.1399, allocations: 232.5 kB / 451.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1399, allocations: 0 / 451.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.1402, allocations: 63.98 kB / 451.8 MB, free: 10.87 MB / 334.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.00178/0.142, allocations: 1.302 MB / 453.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006082/0.1426, allocations: 401.7 kB / 453.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1426, allocations: 448 / 453.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003802/0.143, allocations: 346.1 kB / 453.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.1434, allocations: 61.45 kB / 453.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.147, allocations: 2.85 MB / 456.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1474, allocations: 0.7479 MB / 457.5 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.1475, allocations: 29.53 kB / 457.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.1476, allocations: 67.41 kB / 457.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1476, allocations: 0 / 457.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02678/0.1744, allocations: 6.027 MB / 463.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/7.937, allocations: 4.203 kB / 463.6 MB, free: 14.8 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches