Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001655/0.001655, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.00147/0.00147, allocations: 220.2 kB / 23 MB, free: 5.617 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.488/1.488, allocations: 230.2 MB / 256.2 MB, free: 8.559 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2341/0.2341, allocations: 46.89 MB / 359.4 MB, free: 4.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002727/0.002727, allocations: 87.84 kB / 0.4941 GB, free: 9.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3254, allocations: 65.98 MB / 0.5586 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003265/0.3287, allocations: 1.917 MB / 0.5604 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3307, allocations: 1.205 MB / 0.5616 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.44e-05/0.3308, allocations: 8 kB / 0.5616 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006148/0.3314, allocations: 187.4 kB / 0.5618 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004397/0.3319, allocations: 175.4 kB / 0.562 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.3323, allocations: 159.5 kB / 0.5621 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.3327, allocations: 279.3 kB / 0.5624 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3328, allocations: 23.5 kB / 0.5624 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.3329, allocations: 115.5 kB / 0.5625 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.3331, allocations: 123.6 kB / 0.5626 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.376e-05/0.3332, allocations: 19.94 kB / 0.5627 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.3333, allocations: 67.97 kB / 0.5627 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.766e-05/0.3334, allocations: 67.75 kB / 0.5628 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.3335, allocations: 115.4 kB / 0.5629 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.334, allocations: 286.9 kB / 0.5632 GB, free: 440 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.334, allocations: 0 / 0.5632 GB, free: 440 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.334, allocations: 0 / 0.5632 GB, free: 440 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.334, allocations: 0 / 0.5632 GB, free: 440 kB / 398.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.001128/0.3351, allocations: 0.6685 MB / 0.5638 GB, free: 15.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3352, allocations: 16.02 kB / 0.5638 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.957e-05/0.3352, allocations: 46.75 kB / 0.5639 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.577e-05/0.3353, allocations: 28.8 kB / 0.5639 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.3357, allocations: 287.7 kB / 0.5642 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3359, allocations: 89.67 kB / 0.5643 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.3359, allocations: 20.31 kB / 0.5643 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.3362, allocations: 164.4 kB / 0.5644 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3363, allocations: 3.984 kB / 0.5645 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.3363, allocations: 8 kB / 0.5645 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3363, allocations: 0 / 0.5645 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.3365, allocations: 95.88 kB / 0.5646 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009204/0.3375, allocations: 0.6024 MB / 0.5651 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.3378, allocations: 155.9 kB / 0.5653 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.338, allocations: 78.53 kB / 0.5654 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.338, allocations: 0 / 0.5654 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/0.3386, allocations: 437.1 kB / 0.5658 GB, free: 13.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3386, allocations: 4 kB / 0.5658 GB, free: 13.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009489/0.3395, allocations: 438.5 kB / 0.5662 GB, free: 12.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.3396, allocations: 217.6 kB / 0.5664 GB, free: 12.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.3401, allocations: 330.5 kB / 0.5667 GB, free: 12.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.3401, allocations: 33.7 kB / 0.5668 GB, free: 12.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3402, allocations: 136.6 kB / 0.5669 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.3403, allocations: 51.59 kB / 0.5669 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.833e-05/0.3404, allocations: 61.69 kB / 0.567 GB, free: 12.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3406, allocations: 334.8 kB / 0.5673 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3407, allocations: 59.95 kB / 0.5674 GB, free: 11.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.3409, allocations: 142.3 kB / 0.5675 GB, free: 11.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.3414, allocations: 359 kB / 0.5678 GB, free: 11.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3414, allocations: 3.938 kB / 0.5679 GB, free: 11.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005981/0.342, allocations: 350.6 kB / 0.5682 GB, free: 10.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.07e-05/0.3421, allocations: 101.2 kB / 0.5683 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3421, allocations: 8 kB / 0.5683 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3421, allocations: 7.938 kB / 0.5683 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.3422, allocations: 19.98 kB / 0.5683 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3422, allocations: 7.938 kB / 0.5683 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.3424, allocations: 27.88 kB / 0.5684 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.3424, allocations: 8 kB / 0.5684 GB, free: 10.54 MB / 414.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.000263/0.3427, allocations: 273.5 kB / 0.5686 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.884e-05/0.3427, allocations: 31.8 kB / 0.5687 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00039/0.3431, allocations: 200.9 kB / 0.5688 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.3431, allocations: 4.188 kB / 0.5688 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3431, allocations: 0 / 0.5688 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3431, allocations: 3.984 kB / 0.5689 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003334/0.3435, allocations: 297.4 kB / 0.5691 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.3435, allocations: 0 / 0.5691 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.163e-05/0.3435, allocations: 4 kB / 0.5691 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3435, allocations: 7.938 kB / 0.5691 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3435, allocations: 19.92 kB / 0.5692 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3435, allocations: 0 / 0.5692 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3435, allocations: 0 / 0.5692 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007051/0.3442, allocations: 446.8 kB / 0.5696 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.3443, allocations: 101 kB / 0.5697 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.721e-05/0.3444, allocations: 15.94 kB / 0.5697 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.3445, allocations: 19.98 kB / 0.5697 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.952e-05/0.3446, allocations: 23.92 kB / 0.5697 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.3446, allocations: 12 kB / 0.5698 GB, free: 8.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.3449, allocations: 245.9 kB / 0.57 GB, free: 8.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3449, allocations: 0 / 0.57 GB, free: 8.711 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.3453, allocations: 71.88 kB / 0.5701 GB, free: 8.641 MB / 414.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * 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.002531/0.3478, allocations: 1.297 MB / 0.5713 GB, free: 7.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006381/0.3484, allocations: 357.9 kB / 0.5717 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3484, allocations: 4 kB / 0.5717 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.3488, allocations: 270.1 kB / 0.5719 GB, free: 6.754 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.3492, allocations: 62.14 kB / 0.572 GB, free: 6.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.3532, allocations: 2.871 MB / 0.5748 GB, free: 3.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3536, allocations: 0.7517 MB / 0.5755 GB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.3537, allocations: 29.53 kB / 0.5756 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.3538, allocations: 71.42 kB / 0.5756 GB, free: 2.777 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3538, allocations: 0 / 0.5756 GB, free: 2.777 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03014/0.384, allocations: 6.305 MB / 0.5818 GB, free: 12.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.36/8.744, allocations: 11.38 kB / 0.5818 GB, free: 12.47 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.685575537005207] 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.869695902976673 8.886208301 8.548723164 Calling exit ...