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.00158/0.00158, allocations: 109.4 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.001983/0.001983, allocations: 219 kB / 23 MB, free: 5.609 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.465/1.465, allocations: 230.2 MB / 256.2 MB, free: 8.684 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.2284/0.2284, allocations: 46.89 MB / 359.4 MB, free: 4.926 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.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.002331/0.002331, allocations: 83.86 kB / 0.4941 GB, free: 9.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3484, allocations: 65.99 MB / 0.5586 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004987/0.3533, allocations: 2.944 MB / 0.5614 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.3551, allocations: 0.6895 MB / 0.5621 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003037/0.3554, allocations: 8 kB / 0.5621 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.3557, allocations: 55.44 kB / 0.5622 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.356, allocations: 87.19 kB / 0.5623 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.3563, allocations: 91.86 kB / 0.5623 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000685/0.357, allocations: 418 kB / 0.5627 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.3573, allocations: 94.94 kB / 0.5628 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002791/0.3575, allocations: 155.5 kB / 0.563 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.3578, allocations: 167.3 kB / 0.5631 GB, free: 460 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.3579, allocations: 32 kB / 0.5632 GB, free: 428 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.358, allocations: 36 kB / 0.5632 GB, free: 392 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.3581, allocations: 75.75 kB / 0.5633 GB, free: 316 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.3583, allocations: 159.3 kB / 0.5634 GB, free: 156 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005443/0.3588, allocations: 394.6 kB / 0.5638 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3588, allocations: 3.938 kB / 0.5638 GB, free: 15.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3588, allocations: 0 / 0.5638 GB, free: 15.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.09e-05/0.3588, allocations: 7.984 kB / 0.5638 GB, free: 15.75 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.001201/0.36, allocations: 0.6429 MB / 0.5644 GB, free: 15.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3601, allocations: 15.97 kB / 0.5645 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.646e-05/0.3601, allocations: 62.72 kB / 0.5645 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.3602, allocations: 32.75 kB / 0.5646 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.3607, allocations: 281.2 kB / 0.5648 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.3607, allocations: 20.94 kB / 0.5648 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.218e-05/0.3607, allocations: 24.38 kB / 0.5649 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006157/0.3614, allocations: 340.6 kB / 0.5652 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3614, allocations: 0 / 0.5652 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.3614, allocations: 8 kB / 0.5652 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3614, allocations: 8 kB / 0.5652 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005265/0.3619, allocations: 242.1 kB / 0.5654 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.364, allocations: 1.246 MB / 0.5667 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007729/0.3648, allocations: 437.1 kB / 0.5671 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.3651, allocations: 141.3 kB / 0.5672 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3651, allocations: 4.234 kB / 0.5672 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3652, allocations: 38.73 kB / 0.5672 GB, free: 11.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.403e-06/0.3652, allocations: 0 / 0.5672 GB, free: 11.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.00304/0.3682, allocations: 1.015 MB / 0.5682 GB, free: 10.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.3682, allocations: 55.41 kB / 0.5683 GB, free: 10.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.3685, allocations: 237 kB / 0.5685 GB, free: 10.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.3685, allocations: 33.7 kB / 0.5685 GB, free: 10.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.3687, allocations: 168.6 kB / 0.5687 GB, free: 10.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.747e-05/0.3687, allocations: 99.16 kB / 0.5688 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.3688, allocations: 53.7 kB / 0.5689 GB, free: 10.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.369, allocations: 338.8 kB / 0.5692 GB, free: 9.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.3692, allocations: 99.94 kB / 0.5693 GB, free: 9.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.3695, allocations: 152 kB / 0.5694 GB, free: 9.656 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004838/0.37, allocations: 244.2 kB / 0.5696 GB, free: 9.402 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.37, allocations: 3.938 kB / 0.5697 GB, free: 9.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001172/0.3712, allocations: 495.2 kB / 0.5701 GB, free: 8.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3712, allocations: 4 kB / 0.5701 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3712, allocations: 8.062 kB / 0.5701 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009846/0.3722, allocations: 237.4 kB / 0.5704 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3723, allocations: 35.92 kB / 0.5704 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.3769, allocations: 3.693 MB / 0.574 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.3771, allocations: 31.83 kB / 0.574 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.3771, allocations: 4 kB / 0.574 GB, free: 4.609 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.0001709/0.3773, allocations: 157.8 kB / 0.5742 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.3774, allocations: 23.86 kB / 0.5742 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.566e-05/0.3774, allocations: 30.88 kB / 0.5742 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3774, allocations: 4 kB / 0.5742 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.3775, allocations: 11.92 kB / 0.5743 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3775, allocations: 0 / 0.5743 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.3791, allocations: 0.8803 MB / 0.5751 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3791, allocations: 0 / 0.5751 GB, free: 3.434 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.535e-05/0.3792, allocations: 19.92 kB / 0.5751 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008903/0.3801, allocations: 241.5 kB / 0.5754 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.3801, allocations: 4 kB / 0.5754 GB, free: 3.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004298/0.3844, allocations: 3.685 MB / 0.579 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3844, allocations: 0 / 0.579 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3855, allocations: 0.5291 MB / 0.5795 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.3857, allocations: 120.8 kB / 0.5796 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.3857, allocations: 8 kB / 0.5796 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.386, allocations: 31.97 kB / 0.5796 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.524e-05/0.386, allocations: 23.97 kB / 0.5797 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3861, allocations: 8 kB / 0.5797 GB, free: 14.44 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.3863, allocations: 180.3 kB / 0.5798 GB, free: 14.27 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3863, allocations: 0 / 0.5798 GB, free: 14.27 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.3867, allocations: 111.8 kB / 0.5799 GB, free: 14.16 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.001484/0.3882, allocations: 1.065 MB / 0.581 GB, free: 13.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3893, allocations: 0.544 MB / 0.5815 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3893, allocations: 0 / 0.5815 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006532/0.39, allocations: 421.5 kB / 0.5819 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.3904, allocations: 47.91 kB / 0.582 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/0.3953, allocations: 3.049 MB / 0.5849 GB, free: 8.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.3958, allocations: 0.7639 MB / 0.5857 GB, free: 8.051 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.399e-05/0.3959, allocations: 18.3 kB / 0.5857 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.396, allocations: 79.41 kB / 0.5858 GB, free: 7.957 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.396, allocations: 0 / 0.5858 GB, free: 7.957 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.4345, allocations: 7.272 MB / 0.5929 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.81, allocations: 11.3 kB / 0.5929 GB, free: 0.8086 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.566583748994162] 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.89852680801414 10.914276184 10.552347374 Calling exit ...