Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002706/0.002711, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.184/2.184, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.304/0.304, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000664/0.0006641, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1357, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003228/0.139, allocations: 1.542 MB / 491.9 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.1415, allocations: 0.8669 MB / 492.7 MB, free: 6.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.1418, allocations: 0 / 492.7 MB, free: 6.816 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009062/0.1427, allocations: 171.5 kB / 492.9 MB, free: 6.648 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005043/0.1432, allocations: 107.7 kB / 493 MB, free: 6.543 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007751/0.144, allocations: 139.7 kB / 493.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.1445, allocations: 155.7 kB / 493.3 MB, free: 6.254 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.1447, allocations: 25.67 kB / 493.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.1449, allocations: 91.67 kB / 493.4 MB, free: 6.137 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.1451, allocations: 103.6 kB / 493.5 MB, free: 6.035 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.1452, allocations: 8 kB / 493.5 MB, free: 6.027 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.1454, allocations: 35.92 kB / 493.5 MB, free: 5.992 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.1455, allocations: 59.86 kB / 493.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.1457, allocations: 65.58 kB / 493.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.1461, allocations: 207.7 kB / 493.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1461, allocations: 0 / 493.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1461, allocations: 0 / 493.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1461, allocations: 0 / 493.9 MB, free: 5.66 MB / 330.7 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.001257/0.1474, allocations: 0.6104 MB / 494.5 MB, free: 4.977 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1475, allocations: 15.97 kB / 494.5 MB, free: 4.961 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.587e-05/0.1476, allocations: 46.55 kB / 494.5 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.1477, allocations: 35.61 kB / 494.6 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.1482, allocations: 261.7 kB / 494.8 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.1483, allocations: 93.11 kB / 494.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.1484, allocations: 16 kB / 494.9 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.1489, allocations: 161.5 kB / 495.1 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1489, allocations: 3.938 kB / 495.1 MB, free: 4.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.149, allocations: 4 kB / 495.1 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.149, allocations: 3.953 kB / 495.1 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004036/0.1494, allocations: 103.8 kB / 495.2 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.1507, allocations: 0.6102 MB / 495.8 MB, free: 3.496 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.1513, allocations: 179.9 kB / 496 MB, free: 3.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.1514, allocations: 7.953 kB / 496 MB, free: 3.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007364/0.1521, allocations: 445.2 kB / 496.4 MB, free: 2.773 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.635e-06/0.1521, allocations: 0 / 496.4 MB, free: 2.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001561/0.1537, allocations: 0.666 MB / 497.1 MB, free: 2.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.1539, allocations: 217.6 kB / 497.3 MB, free: 1.766 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/0.1545, allocations: 317 kB / 497.6 MB, free: 1.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/0.1546, allocations: 33.7 kB / 497.7 MB, free: 1.406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1547, allocations: 187 kB / 497.8 MB, free: 1.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.1548, allocations: 55.34 kB / 497.9 MB, free: 1.168 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.571e-05/0.1549, allocations: 0 / 497.9 MB, free: 1.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.155, allocations: 322.8 kB / 498.2 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.1553, allocations: 60.16 kB / 498.3 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.1557, allocations: 154.6 kB / 498.4 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.156, allocations: 149.2 kB / 498.6 MB, free: 444 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.1561, allocations: 4 kB / 498.6 MB, free: 440 kB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008964/0.157, allocations: 342.3 kB / 498.9 MB, free: 72 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.1571, allocations: 96.58 kB / 499 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.1572, allocations: 4 kB / 499 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.1572, allocations: 4 kB / 499 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.1574, allocations: 27.88 kB / 499 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1574, allocations: 0 / 499 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.1577, allocations: 27.98 kB / 499.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.1578, allocations: 20 kB / 499.1 MB, free: 15.88 MB / 346.7 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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004229/0.1582, allocations: 269.4 kB / 499.3 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1583, allocations: 31.67 kB / 499.4 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.16e-05/0.1584, allocations: 29.7 kB / 499.4 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1585, allocations: 0 / 499.4 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1585, allocations: 4 kB / 499.4 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.1585, allocations: 4 kB / 499.4 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004344/0.1589, allocations: 293.3 kB / 499.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.159, allocations: 3.938 kB / 499.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.064e-05/0.159, allocations: 4 kB / 499.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.1591, allocations: 4 kB / 499.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.1591, allocations: 15.95 kB / 499.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1591, allocations: 0 / 499.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1591, allocations: 0 / 499.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1603, allocations: 474.7 kB / 0.4885 GB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.1605, allocations: 104.8 kB / 0.4886 GB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.14e-05/0.1606, allocations: 16 kB / 0.4886 GB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1609, allocations: 15.98 kB / 0.4886 GB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.161, allocations: 27.97 kB / 0.4886 GB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.379e-05/0.1611, allocations: 15.98 kB / 0.4886 GB, free: 14.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004154/0.1615, allocations: 228.5 kB / 0.4888 GB, free: 14.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1615, allocations: 0 / 0.4888 GB, free: 14.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005415/0.1621, allocations: 63.98 kB / 0.4889 GB, free: 14.16 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002836/0.1649, allocations: 1.463 MB / 0.4903 GB, free: 12.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.166, allocations: 405.8 kB / 0.4907 GB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.1661, allocations: 0 / 0.4907 GB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006211/0.1667, allocations: 346.1 kB / 0.4911 GB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.1672, allocations: 44.39 kB / 0.4911 GB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004783/0.172, allocations: 2.837 MB / 0.4939 GB, free: 8.898 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.1725, allocations: 0.7711 MB / 0.4946 GB, free: 8.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.1727, allocations: 59.42 kB / 0.4947 GB, free: 8.043 MB / 346.7 MB Notification: Performance of SimCode: time 1.462e-06/0.1728, allocations: 0 / 0.4947 GB, free: 8.043 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.748/2.92, allocations: 4.493 MB / 0.4991 GB, free: 3.547 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat