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.00107/0.00107, allocations: 106 kB / 15.98 MB, free: 6.34 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.001169/0.001169, allocations: 193.7 kB / 16.9 MB, free: 6.184 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.358/1.358, allocations: 205.1 MB / 222.8 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3092/0.3092, allocations: 43.5 MB / 313.6 MB, free: 8.625 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.001322/0.001322, allocations: 67.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.115, allocations: 57.79 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003519/0.1186, allocations: 1.939 MB / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1202, allocations: 0.9364 MB / 443 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.952e-05/0.1203, allocations: 4 kB / 443 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000721/0.1211, allocations: 183.6 kB / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.1214, allocations: 115.7 kB / 443.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.1218, allocations: 155.8 kB / 443.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.1222, allocations: 279.3 kB / 443.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1223, allocations: 29.66 kB / 443.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.1224, allocations: 111.6 kB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.1226, allocations: 119.6 kB / 444 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.1226, allocations: 20 kB / 444 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1228, allocations: 67.91 kB / 444 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.581e-05/0.1229, allocations: 55.83 kB / 444.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.123, allocations: 111.5 kB / 444.2 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1234, allocations: 275.4 kB / 444.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1234, allocations: 0 / 444.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1234, allocations: 0 / 444.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1234, allocations: 0 / 444.5 MB, free: 10.24 MB / 382.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.0009887/0.1244, allocations: 0.6611 MB / 445.1 MB, free: 9.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1244, allocations: 15.89 kB / 445.2 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.833e-05/0.1245, allocations: 42.69 kB / 445.2 MB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.1246, allocations: 32.64 kB / 445.2 MB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.1249, allocations: 278.7 kB / 445.5 MB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.643e-05/0.125, allocations: 97.42 kB / 445.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.125, allocations: 16 kB / 445.6 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1254, allocations: 161 kB / 445.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1254, allocations: 0 / 445.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.1254, allocations: 7.984 kB / 445.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1254, allocations: 0 / 445.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.1257, allocations: 95.88 kB / 445.9 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008216/0.1265, allocations: 0.6024 MB / 446.5 MB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.1268, allocations: 175.9 kB / 446.6 MB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.1271, allocations: 90.55 kB / 446.7 MB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.1271, allocations: 4 kB / 446.7 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005512/0.1277, allocations: 440.9 kB / 447.2 MB, free: 7.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.884e-06/0.1277, allocations: 0 / 447.2 MB, free: 7.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001079/0.1288, allocations: 442.3 kB / 447.6 MB, free: 6.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.1289, allocations: 217.6 kB / 447.8 MB, free: 6.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.1294, allocations: 317 kB / 448.1 MB, free: 6.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.1294, allocations: 37.64 kB / 448.2 MB, free: 6.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.1296, allocations: 140.6 kB / 448.3 MB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.028e-05/0.1297, allocations: 51.34 kB / 448.3 MB, free: 5.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.169e-05/0.1298, allocations: 49.64 kB / 448.4 MB, free: 5.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003067/0.1301, allocations: 338.8 kB / 448.7 MB, free: 5.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.1303, allocations: 55.97 kB / 448.8 MB, free: 5.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.1306, allocations: 146.2 kB / 448.9 MB, free: 5.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.1311, allocations: 358.9 kB / 449.3 MB, free: 4.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1311, allocations: 0 / 449.3 MB, free: 4.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006957/0.1318, allocations: 350.2 kB / 449.6 MB, free: 4.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.907e-05/0.1319, allocations: 97.09 kB / 449.7 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1319, allocations: 4 kB / 449.7 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.132, allocations: 0 / 449.7 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.1321, allocations: 23.98 kB / 449.7 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.1321, allocations: 7.938 kB / 449.7 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.1323, allocations: 24.2 kB / 449.8 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1323, allocations: 16 kB / 449.8 MB, free: 4.352 MB / 382.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.0002302/0.1325, allocations: 273.6 kB / 450 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.492e-05/0.1326, allocations: 31.66 kB / 450.1 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.009e-05/0.1327, allocations: 33.64 kB / 450.1 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1327, allocations: 192 / 450.1 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.1327, allocations: 0 / 450.1 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1327, allocations: 7.984 kB / 450.1 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.133, allocations: 289.4 kB / 450.4 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.133, allocations: 3.938 kB / 450.4 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.781e-05/0.133, allocations: 11.94 kB / 450.4 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.133, allocations: 4 kB / 450.4 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.1331, allocations: 12 kB / 450.4 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1331, allocations: 0 / 450.4 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1331, allocations: 0 / 450.4 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006307/0.1337, allocations: 443.5 kB / 450.9 MB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.552e-05/0.1338, allocations: 104.7 kB / 451 MB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.559e-05/0.1339, allocations: 15.98 kB / 451 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.134, allocations: 16 kB / 451 MB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.587e-05/0.1341, allocations: 19.97 kB / 451 MB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.1341, allocations: 8 kB / 451 MB, free: 2.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.1343, allocations: 232.4 kB / 451.3 MB, free: 2.734 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1343, allocations: 4 kB / 451.3 MB, free: 2.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.1347, allocations: 64 kB / 451.3 MB, free: 2.668 MB / 382.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.002075/0.1368, allocations: 1.31 MB / 452.6 MB, free: 1.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000583/0.1374, allocations: 390 kB / 453 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1374, allocations: 4 kB / 453 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.1377, allocations: 342.1 kB / 453.3 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.1381, allocations: 52.3 kB / 453.4 MB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1879/0.326, allocations: 2.881 MB / 456.3 MB, free: 47.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.3263, allocations: 0.7528 MB / 457 MB, free: 46.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.3264, allocations: 34.12 kB / 457.1 MB, free: 46.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.3265, allocations: 67.64 kB / 457.1 MB, free: 46.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3265, allocations: 2.844 kB / 457.1 MB, free: 46.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09058/0.4171, allocations: 5.823 MB / 463 MB, free: 46.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.4174, allocations: 228.6 kB / 463.2 MB, free: 46.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.54, allocations: 3.375 kB / 463.2 MB, free: 46.03 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches