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.001781/0.001781, allocations: 121.4 kB / 18.5 MB, free: 4.52 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.002034/0.002034, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.469/1.469, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.2316/0.2316, allocations: 46.93 MB / 357.7 MB, free: 10.2 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.002208/0.002208, allocations: 79.86 kB / 0.4917 GB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1282, allocations: 66.04 MB / 0.5561 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006063/0.1343, allocations: 2.934 MB / 0.559 GB, free: 2.629 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.136, allocations: 0.6856 MB / 0.5597 GB, free: 1.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.1362, allocations: 8 kB / 0.5597 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.1364, allocations: 55.44 kB / 0.5597 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.1366, allocations: 91.17 kB / 0.5598 GB, free: 1.785 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.1367, allocations: 91.81 kB / 0.5599 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004588/0.1372, allocations: 422 kB / 0.5603 GB, free: 1.281 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.1374, allocations: 94.92 kB / 0.5604 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.1376, allocations: 155.5 kB / 0.5606 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.1378, allocations: 175.3 kB / 0.5607 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.211e-05/0.1378, allocations: 32 kB / 0.5608 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.944e-05/0.1379, allocations: 36 kB / 0.5608 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.298e-05/0.138, allocations: 67.77 kB / 0.5609 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.1381, allocations: 175.2 kB / 0.561 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.1386, allocations: 390.4 kB / 0.5614 GB, free: 180 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1386, allocations: 0 / 0.5614 GB, free: 180 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1386, allocations: 0 / 0.5614 GB, free: 180 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.1386, allocations: 0 / 0.5614 GB, free: 180 kB / 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.001091/0.1397, allocations: 0.6388 MB / 0.562 GB, free: 15.49 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1397, allocations: 16.03 kB / 0.562 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.196e-05/0.1398, allocations: 62.73 kB / 0.5621 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1399, allocations: 44.73 kB / 0.5621 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1403, allocations: 284.1 kB / 0.5624 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.1403, allocations: 20.94 kB / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.1403, allocations: 28.38 kB / 0.5625 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.141, allocations: 328.8 kB / 0.5628 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.141, allocations: 0 / 0.5628 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.141, allocations: 12 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.141, allocations: 4 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.1415, allocations: 242.1 kB / 0.563 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1436, allocations: 1.246 MB / 0.5642 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007705/0.1444, allocations: 445 kB / 0.5647 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.1447, allocations: 141.2 kB / 0.5648 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.1447, allocations: 4.234 kB / 0.5648 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.1448, allocations: 38.8 kB / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.1448, allocations: 0 / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003027/0.1478, allocations: 1.009 MB / 0.5658 GB, free: 11.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.1479, allocations: 55.41 kB / 0.5659 GB, free: 11.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.1481, allocations: 245 kB / 0.5661 GB, free: 11.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.1481, allocations: 33.7 kB / 0.5661 GB, free: 11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1483, allocations: 172.6 kB / 0.5663 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.96e-05/0.1484, allocations: 91.23 kB / 0.5664 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.1485, allocations: 57.66 kB / 0.5664 GB, free: 10.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.1487, allocations: 326.8 kB / 0.5668 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.1491, allocations: 103.9 kB / 0.5669 GB, free: 10.24 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.1494, allocations: 156 kB / 0.567 GB, free: 10.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.1501, allocations: 252.2 kB / 0.5672 GB, free: 9.812 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1501, allocations: 0 / 0.5672 GB, free: 9.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001567/0.1517, allocations: 482.7 kB / 0.5677 GB, free: 9.328 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1517, allocations: 8 kB / 0.5677 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1517, allocations: 0 / 0.5677 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.153, allocations: 249.5 kB / 0.5679 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1532, allocations: 31.92 kB / 0.568 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/0.1575, allocations: 3.685 MB / 0.5716 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1577, allocations: 35.77 kB / 0.5716 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.1578, allocations: 12 kB / 0.5716 GB, free: 5.027 MB / 430.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.0002404/0.158, allocations: 141.8 kB / 0.5718 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/0.1581, allocations: 27.81 kB / 0.5718 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.444e-05/0.1581, allocations: 34.86 kB / 0.5718 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1581, allocations: 4 kB / 0.5718 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.1581, allocations: 7.938 kB / 0.5718 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1582, allocations: 0 / 0.5718 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.1598, allocations: 0.8836 MB / 0.5727 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1598, allocations: 3.938 kB / 0.5727 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.327e-05/0.1599, allocations: 16 kB / 0.5727 GB, free: 3.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008987/0.1608, allocations: 237.4 kB / 0.5729 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.1608, allocations: 4 kB / 0.5729 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004345/0.1651, allocations: 3.681 MB / 0.5765 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1651, allocations: 0 / 0.5765 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1663, allocations: 0.5252 MB / 0.577 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.1664, allocations: 132.8 kB / 0.5772 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.1664, allocations: 7.984 kB / 0.5772 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.1667, allocations: 27.92 kB / 0.5772 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1668, allocations: 35.89 kB / 0.5772 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.1668, allocations: 7.938 kB / 0.5772 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001695/0.167, allocations: 176.5 kB / 0.5774 GB, free: 14.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.167, allocations: 0 / 0.5774 GB, free: 14.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004447/0.1675, allocations: 111.8 kB / 0.5775 GB, free: 14.58 MB / 446.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.001538/0.169, allocations: 1.065 MB / 0.5786 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.1701, allocations: 0.544 MB / 0.5791 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1701, allocations: 0 / 0.5791 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.1708, allocations: 421.7 kB / 0.5795 GB, free: 12.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1712, allocations: 44.02 kB / 0.5795 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.1764, allocations: 3.045 MB / 0.5825 GB, free: 9.273 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.1769, allocations: 0.7639 MB / 0.5833 GB, free: 8.484 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.177, allocations: 22.3 kB / 0.5833 GB, free: 8.465 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.1771, allocations: 75.41 kB / 0.5834 GB, free: 8.391 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1771, allocations: 4 kB / 0.5834 GB, free: 8.387 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05702/0.2341, allocations: 7.261 MB / 0.5904 GB, free: 1.328 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.36, allocations: 20.98 kB / 0.5905 GB, free: 1.312 MB / 446.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.836301506031305] 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.674430257640779 10.688382203 10.547378076 Calling exit ...