Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.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.001272/0.001272, allocations: 109 kB / 21.23 MB, free: 0.5117 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.001407/0.001407, allocations: 209.9 kB / 24.54 MB, free: 3.906 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.448/1.448, allocations: 230.5 MB / 258.2 MB, free: 8.23 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.229/0.229, allocations: 46.93 MB / 361.6 MB, free: 4.246 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.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",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.003642/0.003642, allocations: 95.83 kB / 0.497 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3203, allocations: 66.08 MB / 0.5615 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003953/0.3243, allocations: 2.335 MB / 0.5638 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003082/0.3274, allocations: 1.724 MB / 0.5655 GB, free: 288 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.3276, allocations: 15.88 kB / 0.5655 GB, free: 272 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000445/0.328, allocations: 139.2 kB / 0.5656 GB, free: 132 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006479/0.3286, allocations: 290.8 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.33, allocations: 0.5331 MB / 0.5664 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006829/0.3307, allocations: 0.5765 MB / 0.567 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.3309, allocations: 51.2 kB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003264/0.3312, allocations: 243 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.3315, allocations: 246.9 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.657e-05/0.3316, allocations: 28 kB / 0.5675 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000376/0.3319, allocations: 203.8 kB / 0.5677 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.3321, allocations: 135.5 kB / 0.5678 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.3323, allocations: 202.7 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007403/0.333, allocations: 0.5991 MB / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.333, allocations: 0 / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.333, allocations: 0 / 0.5686 GB, free: 13.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.333, allocations: 0 / 0.5686 GB, free: 13.04 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001291/0.3343, allocations: 0.8574 MB / 0.5695 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3344, allocations: 20.02 kB / 0.5695 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.562e-05/0.3344, allocations: 38.75 kB / 0.5695 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.3345, allocations: 68.55 kB / 0.5696 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.3352, allocations: 417.4 kB / 0.57 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.3353, allocations: 8.609 kB / 0.57 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.3353, allocations: 16.38 kB / 0.57 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/0.3358, allocations: 265 kB / 0.5703 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3358, allocations: 3.938 kB / 0.5703 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.3358, allocations: 11.94 kB / 0.5703 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.3358, allocations: 4 kB / 0.5703 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.3361, allocations: 111.9 kB / 0.5704 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.3373, allocations: 0.8553 MB / 0.5712 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007286/0.338, allocations: 282.6 kB / 0.5715 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.3382, allocations: 103.3 kB / 0.5716 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.3383, allocations: 4.156 kB / 0.5716 GB, free: 9.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004471/0.3387, allocations: 218.6 kB / 0.5718 GB, free: 9.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.3387, allocations: 0 / 0.5718 GB, free: 9.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.001016/0.3397, allocations: 405.1 kB / 0.5722 GB, free: 9.129 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002298/0.34, allocations: 358 kB / 0.5725 GB, free: 8.699 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008522/0.3408, allocations: 0.6669 MB / 0.5732 GB, free: 8.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.3409, allocations: 37.69 kB / 0.5732 GB, free: 7.977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.3411, allocations: 236.5 kB / 0.5734 GB, free: 7.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.3411, allocations: 67.47 kB / 0.5735 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.908e-05/0.3412, allocations: 61.69 kB / 0.5736 GB, free: 7.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.3414, allocations: 366.8 kB / 0.5739 GB, free: 7.242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.3417, allocations: 87.95 kB / 0.574 GB, free: 7.156 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.342, allocations: 249 kB / 0.5742 GB, free: 6.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.3425, allocations: 231.8 kB / 0.5744 GB, free: 6.602 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3425, allocations: 0 / 0.5744 GB, free: 6.602 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007753/0.3433, allocations: 317 kB / 0.5748 GB, free: 6.285 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.3433, allocations: 10.5 kB / 0.5748 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3433, allocations: 7.922 kB / 0.5748 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3434, allocations: 4 kB / 0.5748 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.3436, allocations: 55.91 kB / 0.5748 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.3436, allocations: 12.06 kB / 0.5748 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.3438, allocations: 27.88 kB / 0.5749 GB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3439, allocations: 8.25 kB / 0.5749 GB, free: 6.164 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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.0002633/0.3441, allocations: 225.7 kB / 0.5751 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.39e-05/0.3442, allocations: 59.62 kB / 0.5751 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008019/0.345, allocations: 349.6 kB / 0.5755 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.345, allocations: 4 kB / 0.5755 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.345, allocations: 3.938 kB / 0.5755 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.345, allocations: 3.984 kB / 0.5755 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004793/0.3455, allocations: 392.3 kB / 0.5759 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3455, allocations: 3.984 kB / 0.5759 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.3456, allocations: 27.92 kB / 0.5759 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3456, allocations: 0 / 0.5759 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.3457, allocations: 11.98 kB / 0.5759 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3457, allocations: 4.25 kB / 0.5759 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3457, allocations: 7.938 kB / 0.5759 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007404/0.3464, allocations: 367 kB / 0.5763 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.3465, allocations: 59.59 kB / 0.5763 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.3466, allocations: 8 kB / 0.5763 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.3467, allocations: 19.98 kB / 0.5764 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3468, allocations: 43.88 kB / 0.5764 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/0.3469, allocations: 15.98 kB / 0.5764 GB, free: 4.496 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005927/0.3475, allocations: 490.8 kB / 0.5769 GB, free: 4.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3475, allocations: 0 / 0.5769 GB, free: 4.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.3479, allocations: 95.92 kB / 0.577 GB, free: 3.926 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002721/0.3506, allocations: 1.257 MB / 0.5782 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007128/0.3513, allocations: 223.6 kB / 0.5784 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3513, allocations: 0 / 0.5784 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003508/0.3517, allocations: 167.8 kB / 0.5786 GB, free: 2.387 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007003/0.3524, allocations: 148.3 kB / 0.5787 GB, free: 2.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006633/0.359, allocations: 4.283 MB / 0.5829 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.3596, allocations: 0.8467 MB / 0.5837 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003324/0.3599, allocations: 83.25 kB / 0.5838 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.3602, allocations: 175.4 kB / 0.584 GB, free: 12.68 MB / 430.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3602, allocations: 0 / 0.584 GB, free: 12.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04103/0.4013, allocations: 13.02 MB / 0.5967 GB, free: 15.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.085/9.486, allocations: 10.11 kB / 0.5967 GB, free: 15.69 MB / 446.1 MB " [Timeout remaining time 650] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000599161 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.47897915681824] Failed to read output from testmodel.py, exit status != 0: ['time', 'integerTable.y', 'integerTable2.y', 'integerTable3.y', 'integerTable4.y'] 9.640478340908885 9.66781773 9.3291678 Calling exit ...