Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2095/0.2095, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 70.2 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1258, allocations: 62.45 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003444/0.1292, allocations: 1.913 MB / 482 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1312, allocations: 1.177 MB / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1314, allocations: 0 / 483.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.132, allocations: 191.4 kB / 483.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004263/0.1325, allocations: 159.4 kB / 483.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.1329, allocations: 175 kB / 483.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003634/0.1333, allocations: 283.3 kB / 484 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1334, allocations: 33.67 kB / 484 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1336, allocations: 107.6 kB / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.1338, allocations: 119.6 kB / 484.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.1338, allocations: 16 kB / 484.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.134, allocations: 59.97 kB / 484.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.68e-05/0.1341, allocations: 75.69 kB / 484.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1342, allocations: 103.5 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003593/0.1346, allocations: 287.3 kB / 484.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1346, allocations: 0 / 484.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1346, allocations: 4 kB / 484.8 MB, free: 500 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.1346, allocations: 0 / 484.8 MB, free: 500 kB / 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.000973/0.1356, allocations: 0.6572 MB / 485.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1357, allocations: 8.031 kB / 485.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.123e-05/0.1357, allocations: 46.73 kB / 485.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.023e-05/0.1358, allocations: 36.56 kB / 485.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.1361, allocations: 279.6 kB / 485.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.502e-05/0.1363, allocations: 105.4 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.1363, allocations: 12 kB / 485.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.1366, allocations: 156.2 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1366, allocations: 0 / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.1366, allocations: 8 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1367, allocations: 4 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.1369, allocations: 91.88 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008086/0.1377, allocations: 0.6064 MB / 486.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.1381, allocations: 179.9 kB / 487 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1383, allocations: 94.48 kB / 487.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1383, allocations: 0 / 487.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004791/0.1388, allocations: 437.1 kB / 487.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.1388, allocations: 0 / 487.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000926/0.1397, allocations: 442.3 kB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1398, allocations: 221.6 kB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.1402, allocations: 326.5 kB / 488.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.1402, allocations: 33.7 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.1403, allocations: 140.6 kB / 488.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.294e-05/0.1404, allocations: 51.34 kB / 488.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.261e-05/0.1404, allocations: 49.7 kB / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1406, allocations: 334.8 kB / 489 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.1407, allocations: 63.97 kB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1409, allocations: 142.1 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.1413, allocations: 362.9 kB / 489.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.1413, allocations: 384 / 489.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005203/0.1418, allocations: 358.1 kB / 490 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.888e-05/0.1419, allocations: 93.09 kB / 490 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1419, allocations: 7.984 kB / 490.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1419, allocations: 4 kB / 490.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.142, allocations: 24.16 kB / 490.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1421, allocations: 4 kB / 490.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.1422, allocations: 27.83 kB / 490.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1422, allocations: 12 kB / 490.1 MB, free: 10.57 MB / 366.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.0002032/0.1424, allocations: 265.4 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.765e-05/0.1425, allocations: 35.66 kB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.41e-05/0.1426, allocations: 25.7 kB / 490.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1426, allocations: 8 kB / 490.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1426, allocations: 0 / 490.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1426, allocations: 0 / 490.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.1428, allocations: 297.4 kB / 490.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1429, allocations: 3.938 kB / 490.7 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.011e-05/0.1429, allocations: 11.92 kB / 490.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1429, allocations: 4 kB / 490.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.1429, allocations: 4 kB / 490.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.1429, allocations: 4 kB / 490.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1429, allocations: 0 / 490.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005949/0.1435, allocations: 447.4 kB / 491.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.1436, allocations: 108.6 kB / 491.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.1437, allocations: 12 kB / 491.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1438, allocations: 19.98 kB / 491.3 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1439, allocations: 23.92 kB / 491.4 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.1439, allocations: 19.98 kB / 491.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1441, allocations: 241.9 kB / 491.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1441, allocations: 0 / 491.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.1445, allocations: 60 kB / 491.7 MB, free: 8.879 MB / 366.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.001712/0.1462, allocations: 1.303 MB / 493 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000525/0.1467, allocations: 390 kB / 493.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1467, allocations: 0 / 493.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.1471, allocations: 346.5 kB / 493.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.1474, allocations: 55.52 kB / 493.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.1507, allocations: 2.868 MB / 496.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1509, allocations: 0.7479 MB / 497.4 MB, free: 3.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.437e-05/0.151, allocations: 29.53 kB / 497.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.1511, allocations: 67.42 kB / 497.5 MB, free: 2.914 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1512, allocations: 0 / 497.5 MB, free: 2.914 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.1762, allocations: 6.117 MB / 0.4918 GB, free: 12.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.12/9.296, allocations: 14.78 kB / 0.4918 GB, free: 12.84 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1)