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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118.2 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 214.3 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 230.5 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.93 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 75.88 kB / 0.4916 GB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1124, allocations: 66.05 MB / 0.5561 GB, free: 5.594 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003437/0.1159, allocations: 1.915 MB / 0.558 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.1178, allocations: 1.193 MB / 0.5592 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.118, allocations: 0 / 0.5592 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006669/0.1186, allocations: 191.4 kB / 0.5594 GB, free: 2.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.1191, allocations: 163.4 kB / 0.5595 GB, free: 2.109 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.1195, allocations: 170.5 kB / 0.5597 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.1199, allocations: 279.3 kB / 0.5599 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.12, allocations: 17.69 kB / 0.56 GB, free: 1.656 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.1202, allocations: 119.6 kB / 0.5601 GB, free: 1.539 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.1204, allocations: 123.5 kB / 0.5602 GB, free: 1.418 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.1204, allocations: 16 kB / 0.5602 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.1206, allocations: 71.91 kB / 0.5603 GB, free: 1.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.776e-05/0.1207, allocations: 59.81 kB / 0.5603 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.1208, allocations: 111.4 kB / 0.5604 GB, free: 1.164 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.1213, allocations: 290.8 kB / 0.5607 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1213, allocations: 0 / 0.5607 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1213, allocations: 0 / 0.5607 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.1213, allocations: 0 / 0.5607 GB, free: 0.8789 MB / 414.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.00106/0.1223, allocations: 0.6763 MB / 0.5614 GB, free: 132 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1224, allocations: 12.03 kB / 0.5614 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.479e-05/0.1224, allocations: 4.188 kB / 0.5614 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.793e-05/0.1224, allocations: 50.73 kB / 0.5614 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.1225, allocations: 28.8 kB / 0.5615 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.1229, allocations: 279.8 kB / 0.5617 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.123, allocations: 97.66 kB / 0.5618 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.123, allocations: 20.12 kB / 0.5619 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.1234, allocations: 159 kB / 0.562 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1234, allocations: 4 kB / 0.562 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.1234, allocations: 4 kB / 0.562 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1234, allocations: 0 / 0.562 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.1236, allocations: 87.94 kB / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008739/0.1245, allocations: 0.6141 MB / 0.5627 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.1249, allocations: 151.9 kB / 0.5628 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.125, allocations: 70.55 kB / 0.5629 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1251, allocations: 7.938 kB / 0.5629 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004889/0.1256, allocations: 433.1 kB / 0.5633 GB, free: 13.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.1256, allocations: 4 kB / 0.5633 GB, free: 13.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008784/0.1264, allocations: 446.7 kB / 0.5638 GB, free: 13.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1266, allocations: 221.6 kB / 0.564 GB, free: 13.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003736/0.1269, allocations: 326.6 kB / 0.5643 GB, free: 12.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.127, allocations: 33.7 kB / 0.5643 GB, free: 12.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1271, allocations: 132.7 kB / 0.5644 GB, free: 12.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.1271, allocations: 55.58 kB / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/0.1272, allocations: 57.7 kB / 0.5645 GB, free: 12.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1274, allocations: 334.8 kB / 0.5649 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.1275, allocations: 59.95 kB / 0.5649 GB, free: 12.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.1277, allocations: 142.2 kB / 0.5651 GB, free: 11.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000433/0.1282, allocations: 366.9 kB / 0.5654 GB, free: 11.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1282, allocations: 0 / 0.5654 GB, free: 11.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005812/0.1287, allocations: 354.3 kB / 0.5657 GB, free: 11.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.792e-05/0.1288, allocations: 97.25 kB / 0.5658 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1288, allocations: 8 kB / 0.5658 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.1289, allocations: 7.984 kB / 0.5659 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.129, allocations: 19.94 kB / 0.5659 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.129, allocations: 4 kB / 0.5659 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.1291, allocations: 27.88 kB / 0.5659 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1291, allocations: 8 kB / 0.5659 GB, free: 10.98 MB / 430.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.0002348/0.1294, allocations: 269.5 kB / 0.5662 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.1294, allocations: 35.8 kB / 0.5662 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.749e-05/0.1295, allocations: 25.7 kB / 0.5662 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1295, allocations: 4 kB / 0.5662 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1295, allocations: 0 / 0.5662 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1295, allocations: 4.125 kB / 0.5662 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.1298, allocations: 297.4 kB / 0.5665 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1298, allocations: 0 / 0.5665 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.971e-05/0.1298, allocations: 4 kB / 0.5665 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.1298, allocations: 11.92 kB / 0.5665 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.1298, allocations: 11.98 kB / 0.5665 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1298, allocations: 11.94 kB / 0.5666 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1299, allocations: 0 / 0.5666 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.1305, allocations: 439.6 kB / 0.567 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.876e-05/0.1306, allocations: 104.9 kB / 0.5671 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.1306, allocations: 8 kB / 0.5671 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.1308, allocations: 27.98 kB / 0.5671 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.1308, allocations: 15.98 kB / 0.5671 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.1309, allocations: 19.98 kB / 0.5671 GB, free: 9.574 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.1311, allocations: 234 kB / 0.5674 GB, free: 9.344 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1311, allocations: 3.938 kB / 0.5674 GB, free: 9.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.1314, allocations: 75.88 kB / 0.5674 GB, free: 9.266 MB / 430.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.002359/0.1338, allocations: 1.3 MB / 0.5687 GB, free: 8.047 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005601/0.1344, allocations: 361 kB / 0.5691 GB, free: 7.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1344, allocations: 0 / 0.5691 GB, free: 7.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.1347, allocations: 266.1 kB / 0.5693 GB, free: 7.363 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.135, allocations: 61.91 kB / 0.5694 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003715/0.1387, allocations: 2.855 MB / 0.5722 GB, free: 4.289 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1391, allocations: 0.7517 MB / 0.5729 GB, free: 3.508 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1392, allocations: 37.77 kB / 0.5729 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.1393, allocations: 67.41 kB / 0.573 GB, free: 3.406 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1393, allocations: 0 / 0.573 GB, free: 3.406 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.1623, allocations: 6.296 MB / 0.5791 GB, free: 13.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/8.376, allocations: 8 kB / 0.5791 GB, free: 13.15 MB / 446.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00219124 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.215371859958395] Failed to read output from testmodel.py, exit status != 0: ['time', 'booleanTable.y', 'onDelay1.delaySignal', 'onDelay1.t_next', 'onDelay1.u', 'onDelay2.delaySignal', 'onDelay2.t_next', 'onDelay2.u', 'onDelay3.delaySignal', 'onDelay3.t_next', 'onDelay3.u'] 8.556037342001218 8.576314158 8.451242895 Calling exit ...