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.001098/0.001098, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 178.7 kB / 16.57 MB, free: 6.387 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.617/1.617, allocations: 205.4 MB / 222.7 MB, free: 5.676 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.3845/0.3845, allocations: 43.54 MB / 314.5 MB, free: 9.023 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.0005607/0.0005608, allocations: 18.97 kB / 384 MB, free: 8.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1254, allocations: 58.85 MB / 442.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002428/0.1279, allocations: 1.551 MB / 444.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1293, allocations: 0.8591 MB / 445.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.48e-05/0.1294, allocations: 4 kB / 445.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006072/0.13, allocations: 163.6 kB / 445.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.1302, allocations: 111.7 kB / 445.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.1306, allocations: 147.7 kB / 445.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.1308, allocations: 151.8 kB / 445.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.131, allocations: 33.58 kB / 445.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1311, allocations: 91.67 kB / 445.9 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.1312, allocations: 107.6 kB / 446 MB, free: 9.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.1313, allocations: 8 kB / 446.1 MB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.1314, allocations: 35.92 kB / 446.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.501e-05/0.1315, allocations: 55.86 kB / 446.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.16e-05/0.1316, allocations: 73.58 kB / 446.2 MB, free: 9.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.1318, allocations: 203.7 kB / 446.4 MB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.1319, allocations: 0 / 446.4 MB, free: 9.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1319, allocations: 0 / 446.4 MB, free: 9.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1319, allocations: 0 / 446.4 MB, free: 9.602 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.0009247/0.1328, allocations: 0.6143 MB / 447 MB, free: 8.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1329, allocations: 8.031 kB / 447 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.012e-05/0.1329, allocations: 54.48 kB / 447.1 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.133, allocations: 27.72 kB / 447.1 MB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.1333, allocations: 269.6 kB / 447.4 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.039e-05/0.1334, allocations: 93.11 kB / 447.5 MB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.1335, allocations: 19.98 kB / 447.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.1338, allocations: 161.5 kB / 447.6 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.1338, allocations: 0 / 447.6 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.1338, allocations: 11.95 kB / 447.7 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1338, allocations: 0 / 447.7 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.1341, allocations: 99.86 kB / 447.8 MB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.1349, allocations: 0.6141 MB / 448.4 MB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.1353, allocations: 175.9 kB / 448.5 MB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.1353, allocations: 8 kB / 448.5 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000483/0.1358, allocations: 425.1 kB / 449 MB, free: 6.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.442e-06/0.1358, allocations: 0 / 449 MB, free: 6.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009194/0.1367, allocations: 0.6698 MB / 449.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001831/0.1369, allocations: 213.6 kB / 449.8 MB, free: 5.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.1374, allocations: 320.9 kB / 450.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.1374, allocations: 33.7 kB / 450.2 MB, free: 5.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.1376, allocations: 132.6 kB / 450.3 MB, free: 5.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.988e-05/0.1376, allocations: 51.34 kB / 450.4 MB, free: 5.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.1376, allocations: 12 kB / 450.4 MB, free: 5.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1378, allocations: 334.8 kB / 450.7 MB, free: 4.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.138, allocations: 56.16 kB / 450.8 MB, free: 4.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.1382, allocations: 150.9 kB / 450.9 MB, free: 4.594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.1384, allocations: 161 kB / 451.1 MB, free: 4.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1384, allocations: 0 / 451.1 MB, free: 4.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000507/0.1389, allocations: 354.5 kB / 451.4 MB, free: 4.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-05/0.139, allocations: 97.03 kB / 451.5 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.139, allocations: 4 kB / 451.5 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.139, allocations: 4.219 kB / 451.5 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1391, allocations: 31.92 kB / 451.5 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.1392, allocations: 4 kB / 451.5 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.1393, allocations: 31.83 kB / 451.6 MB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.1393, allocations: 8 kB / 451.6 MB, free: 3.852 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,$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.0002284/0.1396, allocations: 265.4 kB / 451.8 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.1396, allocations: 39.67 kB / 451.9 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.1397, allocations: 25.7 kB / 451.9 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1397, allocations: 0 / 451.9 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1397, allocations: 4 kB / 451.9 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1397, allocations: 3.984 kB / 451.9 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002948/0.14, allocations: 281.5 kB / 452.2 MB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.14, allocations: 4 kB / 452.2 MB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.081e-05/0.1401, allocations: 4 kB / 452.2 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.1401, allocations: 7.938 kB / 452.2 MB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.1401, allocations: 12 kB / 452.2 MB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1401, allocations: 4 kB / 452.2 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1401, allocations: 4.188 kB / 452.2 MB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.1408, allocations: 478.8 kB / 452.7 MB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.677e-05/0.1409, allocations: 104.8 kB / 452.8 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.1409, allocations: 12 kB / 452.8 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1411, allocations: 19.98 kB / 452.8 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.711e-05/0.1412, allocations: 19.97 kB / 452.8 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-05/0.1412, allocations: 12 kB / 452.9 MB, free: 2.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002645/0.1415, allocations: 232.4 kB / 453.1 MB, free: 2.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1415, allocations: 0 / 453.1 MB, free: 2.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1418, allocations: 67.94 kB / 453.2 MB, free: 2.129 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 (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.002054/0.1439, allocations: 1.466 MB / 454.6 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006356/0.1445, allocations: 390 kB / 455 MB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.1446, allocations: 4.438 kB / 455 MB, free: 224 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2304/0.375, allocations: 342 kB / 455.3 MB, free: 46.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.3755, allocations: 42.47 kB / 455.4 MB, free: 46.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.3781, allocations: 2.815 MB / 458.2 MB, free: 44.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.3783, allocations: 0.7573 MB / 459 MB, free: 44.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.888e-05/0.3784, allocations: 24.62 kB / 459 MB, free: 44.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.523e-05/0.3785, allocations: 68.61 kB / 459 MB, free: 44.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3785, allocations: 2.875 kB / 459 MB, free: 44.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01644/0.3949, allocations: 5.37 MB / 464.4 MB, free: 43.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.3952, allocations: 196.6 kB / 464.6 MB, free: 43.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.448, allocations: 0 / 464.6 MB, free: 43.38 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat