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.001366/0.001366, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001431/0.001431, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.473/1.473, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.2302/0.2302, allocations: 46.94 MB / 361.6 MB, free: 4.211 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.002345/0.002345, allocations: 79.88 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3633, allocations: 66.09 MB / 0.5615 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003844/0.3672, allocations: 1.926 MB / 0.5634 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3693, allocations: 1.205 MB / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.526e-05/0.3694, allocations: 4 kB / 0.5646 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006658/0.3701, allocations: 195.4 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004147/0.3705, allocations: 163.3 kB / 0.5649 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.3709, allocations: 175.5 kB / 0.5651 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.3713, allocations: 275.3 kB / 0.5653 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.3714, allocations: 19.77 kB / 0.5654 GB, free: 348 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.3716, allocations: 123.5 kB / 0.5655 GB, free: 224 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.3718, allocations: 123.6 kB / 0.5656 GB, free: 100 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.631e-05/0.3719, allocations: 16 kB / 0.5656 GB, free: 84 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.372, allocations: 71.95 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.3721, allocations: 59.77 kB / 0.5657 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3723, allocations: 119.4 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.3727, allocations: 286.9 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3727, allocations: 0 / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3727, allocations: 0 / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3727, allocations: 0 / 0.5661 GB, free: 15.55 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.001005/0.3737, allocations: 0.601 MB / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3737, allocations: 12.03 kB / 0.5667 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.3738, allocations: 50.67 kB / 0.5668 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.236e-05/0.3739, allocations: 28.8 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.3742, allocations: 225.5 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.3744, allocations: 166.8 kB / 0.5672 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.3744, allocations: 16.38 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.3747, allocations: 168.9 kB / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3747, allocations: 0 / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.3748, allocations: 4 kB / 0.5673 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.3748, allocations: 8 kB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.375, allocations: 95.81 kB / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008872/0.3759, allocations: 0.5742 MB / 0.568 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.3763, allocations: 155.9 kB / 0.5682 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.3764, allocations: 70.55 kB / 0.5682 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.3765, allocations: 4 kB / 0.5682 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004829/0.3769, allocations: 433.1 kB / 0.5686 GB, free: 12.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.3769, allocations: 0 / 0.5686 GB, free: 12.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009217/0.3779, allocations: 451 kB / 0.5691 GB, free: 12.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.378, allocations: 221.5 kB / 0.5693 GB, free: 11.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.3784, allocations: 325.8 kB / 0.5696 GB, free: 11.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.3784, allocations: 37.69 kB / 0.5696 GB, free: 11.56 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3785, allocations: 128.6 kB / 0.5698 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.208e-05/0.3786, allocations: 59.58 kB / 0.5698 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.254e-05/0.3787, allocations: 53.64 kB / 0.5699 GB, free: 11.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3788, allocations: 338.8 kB / 0.5702 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.379, allocations: 59.95 kB / 0.5702 GB, free: 10.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.3792, allocations: 146.2 kB / 0.5704 GB, free: 10.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.3796, allocations: 362.6 kB / 0.5707 GB, free: 10.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3796, allocations: 0 / 0.5707 GB, free: 10.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005686/0.3802, allocations: 342.3 kB / 0.5711 GB, free: 9.957 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.785e-05/0.3803, allocations: 105 kB / 0.5712 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3803, allocations: 0 / 0.5712 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3803, allocations: 4 kB / 0.5712 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.3804, allocations: 20.2 kB / 0.5712 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3804, allocations: 11.94 kB / 0.5712 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.3806, allocations: 23.89 kB / 0.5712 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3806, allocations: 15.98 kB / 0.5712 GB, free: 9.762 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.0002586/0.3809, allocations: 261.9 kB / 0.5715 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.591e-05/0.3809, allocations: 35.8 kB / 0.5715 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003907/0.3813, allocations: 204.9 kB / 0.5717 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3813, allocations: 11.98 kB / 0.5717 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3813, allocations: 0 / 0.5717 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.3813, allocations: 4 kB / 0.5717 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.3816, allocations: 260.5 kB / 0.572 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3816, allocations: 4 kB / 0.572 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-05/0.3817, allocations: 4 kB / 0.572 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3817, allocations: 3.938 kB / 0.572 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.3817, allocations: 12 kB / 0.572 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.3817, allocations: 3.938 kB / 0.572 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3817, allocations: 4 kB / 0.572 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/0.3824, allocations: 447.8 kB / 0.5724 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.3825, allocations: 31.72 kB / 0.5725 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/0.3825, allocations: 23.86 kB / 0.5725 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3827, allocations: 12 kB / 0.5725 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.668e-05/0.3827, allocations: 31.95 kB / 0.5725 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.3828, allocations: 8 kB / 0.5725 GB, free: 8.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002797/0.383, allocations: 245.1 kB / 0.5728 GB, free: 8.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.383, allocations: 0 / 0.5728 GB, free: 8.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.3834, allocations: 71.94 kB / 0.5728 GB, free: 7.984 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.002516/0.3859, allocations: 1.307 MB / 0.5741 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006139/0.3865, allocations: 354 kB / 0.5744 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3865, allocations: 448 / 0.5744 GB, free: 6.387 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003628/0.3869, allocations: 278.1 kB / 0.5747 GB, free: 6.078 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3872, allocations: 49.34 kB / 0.5748 GB, free: 6.031 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.3912, allocations: 2.855 MB / 0.5775 GB, free: 3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.3918, allocations: 0.7595 MB / 0.5783 GB, free: 2.211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.858e-05/0.3919, allocations: 29.92 kB / 0.5783 GB, free: 2.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.392, allocations: 67.42 kB / 0.5784 GB, free: 2.113 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.392, allocations: 4 kB / 0.5784 GB, free: 2.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.4235, allocations: 6.458 MB / 0.5847 GB, free: 11.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.419/8.843, allocations: 3.938 kB / 0.5847 GB, free: 11.67 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 --stepSize=0.00219124 --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.737010948825628] 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'] 9.002553205005825 9.029948212 8.651964643 Calling exit ...