Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.001745/0.001745, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002262/0.002262, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.471/1.471, allocations: 230.5 MB / 258.2 MB, free: 8.051 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.2367/0.2367, allocations: 46.94 MB / 361.6 MB, free: 4.215 MB / 286.1 MB " [Timeout remaining time 179] 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.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",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.002341/0.002341, allocations: 87.86 kB / 0.497 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3371, allocations: 66.08 MB / 0.5615 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00464/0.3418, allocations: 2.944 MB / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3433, allocations: 0.7011 MB / 0.5651 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.3435, allocations: 4 kB / 0.5651 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.3437, allocations: 59.44 kB / 0.5651 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.3438, allocations: 87.17 kB / 0.5652 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.344, allocations: 99.86 kB / 0.5653 GB, free: 432 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004465/0.3445, allocations: 418 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.3447, allocations: 91.34 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.3449, allocations: 159.5 kB / 0.5659 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.3451, allocations: 163.3 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.282e-05/0.3452, allocations: 36 kB / 0.5661 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.696e-05/0.3452, allocations: 32 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.012e-05/0.3453, allocations: 71.77 kB / 0.5662 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.3455, allocations: 175.2 kB / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004743/0.3459, allocations: 390.4 kB / 0.5668 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3459, allocations: 4 kB / 0.5668 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3459, allocations: 0 / 0.5668 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.346, allocations: 4 kB / 0.5668 GB, free: 14.91 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001401/0.3474, allocations: 0.5676 MB / 0.5673 GB, free: 14.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.49e-05/0.3474, allocations: 8.031 kB / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.3475, allocations: 62.72 kB / 0.5674 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.726e-05/0.3476, allocations: 36.75 kB / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006437/0.3483, allocations: 215.5 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.814e-05/0.3483, allocations: 21.03 kB / 0.5677 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/0.3484, allocations: 28.38 kB / 0.5677 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007017/0.3491, allocations: 326 kB / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3491, allocations: 0 / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.3491, allocations: 16 kB / 0.568 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3491, allocations: 4 kB / 0.568 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005189/0.3497, allocations: 246.4 kB / 0.5682 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.3519, allocations: 1.212 MB / 0.5694 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007196/0.3526, allocations: 294.8 kB / 0.5697 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.3529, allocations: 145.2 kB / 0.5698 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.353, allocations: 4.234 kB / 0.5699 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.353, allocations: 30.8 kB / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.182e-06/0.353, allocations: 0 / 0.5699 GB, free: 11.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002853/0.3559, allocations: 0.8601 MB / 0.5707 GB, free: 10.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.3559, allocations: 55.41 kB / 0.5708 GB, free: 10.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.3562, allocations: 237.1 kB / 0.571 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.3562, allocations: 29.7 kB / 0.571 GB, free: 10.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.3564, allocations: 184.5 kB / 0.5712 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.3565, allocations: 95.16 kB / 0.5713 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3566, allocations: 49.7 kB / 0.5713 GB, free: 9.996 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.3568, allocations: 338.8 kB / 0.5717 GB, free: 9.656 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.357, allocations: 99.95 kB / 0.5718 GB, free: 9.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.3573, allocations: 155.9 kB / 0.5719 GB, free: 9.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.3578, allocations: 244.2 kB / 0.5721 GB, free: 9.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3578, allocations: 0 / 0.5721 GB, free: 9.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001137/0.3589, allocations: 498.7 kB / 0.5726 GB, free: 8.637 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3589, allocations: 4 kB / 0.5726 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3589, allocations: 0 / 0.5726 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009312/0.3599, allocations: 233.5 kB / 0.5728 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.36, allocations: 35.92 kB / 0.5729 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.3644, allocations: 3.485 MB / 0.5763 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.3646, allocations: 39.83 kB / 0.5763 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.3647, allocations: 8 kB / 0.5763 GB, free: 4.605 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.3648, allocations: 141.8 kB / 0.5765 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.3649, allocations: 23.86 kB / 0.5765 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.569e-05/0.365, allocations: 34.95 kB / 0.5765 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.365, allocations: 4 kB / 0.5765 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.365, allocations: 7.938 kB / 0.5765 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.365, allocations: 7.984 kB / 0.5765 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.3667, allocations: 0.8482 MB / 0.5774 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3667, allocations: 0 / 0.5774 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.397e-05/0.3668, allocations: 19.94 kB / 0.5774 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000841/0.3676, allocations: 237.9 kB / 0.5776 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.3676, allocations: 4 kB / 0.5776 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00451/0.3721, allocations: 3.489 MB / 0.581 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3721, allocations: 480 / 0.581 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.3733, allocations: 0.5213 MB / 0.5815 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3734, allocations: 51.72 kB / 0.5816 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.3734, allocations: 8 kB / 0.5816 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.3737, allocations: 27.97 kB / 0.5816 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/0.3738, allocations: 35.88 kB / 0.5817 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.3738, allocations: 11.94 kB / 0.5817 GB, free: 14.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.374, allocations: 176.4 kB / 0.5818 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.374, allocations: 0 / 0.5818 GB, free: 14.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.3744, allocations: 104 kB / 0.5819 GB, free: 14.54 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00141/0.3758, allocations: 1.057 MB / 0.583 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.3769, allocations: 0.5403 MB / 0.5835 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3769, allocations: 4 kB / 0.5835 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.3776, allocations: 425.7 kB / 0.5839 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.378, allocations: 52.41 kB / 0.584 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004875/0.3829, allocations: 3.041 MB / 0.5869 GB, free: 9.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.3833, allocations: 0.7678 MB / 0.5877 GB, free: 8.434 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.923e-05/0.3834, allocations: 22.28 kB / 0.5877 GB, free: 8.414 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.3835, allocations: 71.42 kB / 0.5878 GB, free: 8.344 MB / 430.1 MB Notification: Performance of SimCode: time 1.283e-06/0.3835, allocations: 0 / 0.5878 GB, free: 8.344 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.4224, allocations: 7.444 MB / 0.595 GB, free: 1.031 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.57, allocations: 11.98 kB / 0.595 GB, free: 1.02 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019988 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.568112313747406] Failed to read output from testmodel.py, exit status != 0: ['time', 'twoWay.LossPower', 'twoWay.p.i', 'twoWay.n1.v', 'twoWay.n1.i', 'twoWay.n2.v', 'twoWay.n2.i', 'controlledTwoWay.LossPower', 'controlledTwoWay.p.i', 'controlledTwoWay.n1.v', 'controlledTwoWay.n1.i', 'controlledTwoWay.n2.v', 'controlledTwoWay.n2.i'] 10.657728982158005 10.67596632 10.32624622 Calling exit ...