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.001546/0.001546, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001692/0.001692, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.462/1.462, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.2214/0.2214, allocations: 46.89 MB / 357.4 MB, free: 10.53 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.003149/0.003149, allocations: 83.88 kB / 0.4912 GB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1228, allocations: 65.98 MB / 0.5556 GB, free: 6.5 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004048/0.1269, allocations: 2.931 MB / 0.5585 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.128, allocations: 0.6934 MB / 0.5592 GB, free: 2.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1281, allocations: 7.938 kB / 0.5592 GB, free: 2.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.1282, allocations: 51.5 kB / 0.5592 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1284, allocations: 91.12 kB / 0.5593 GB, free: 2.699 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.1286, allocations: 99.86 kB / 0.5594 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.129, allocations: 414.1 kB / 0.5598 GB, free: 2.195 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1292, allocations: 94.92 kB / 0.5599 GB, free: 2.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1293, allocations: 147.5 kB / 0.56 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1295, allocations: 167.3 kB / 0.5602 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/0.1296, allocations: 32 kB / 0.5602 GB, free: 1.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.757e-05/0.1297, allocations: 36 kB / 0.5603 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.1297, allocations: 79.73 kB / 0.5603 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1299, allocations: 167.2 kB / 0.5605 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004095/0.1303, allocations: 394.4 kB / 0.5609 GB, free: 1.098 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1303, allocations: 4 kB / 0.5609 GB, free: 1.094 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1303, allocations: 0 / 0.5609 GB, free: 1.094 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1303, allocations: 3.938 kB / 0.5609 GB, free: 1.09 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.001058/0.1314, allocations: 0.639 MB / 0.5615 GB, free: 412 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1314, allocations: 13.11 kB / 0.5615 GB, free: 400 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.155e-05/0.1315, allocations: 66.66 kB / 0.5616 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.1315, allocations: 36.75 kB / 0.5616 GB, free: 288 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.1319, allocations: 272.5 kB / 0.5619 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.132, allocations: 20.94 kB / 0.5619 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.132, allocations: 28.38 kB / 0.5619 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.1326, allocations: 332.6 kB / 0.5623 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1326, allocations: 0 / 0.5623 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.1326, allocations: 12 kB / 0.5623 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.1326, allocations: 4 kB / 0.5623 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.1331, allocations: 246.1 kB / 0.5625 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.1352, allocations: 1.242 MB / 0.5637 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.136, allocations: 445 kB / 0.5641 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.1363, allocations: 145.2 kB / 0.5643 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.1363, allocations: 240 / 0.5643 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.1363, allocations: 38.8 kB / 0.5643 GB, free: 13.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 9.92e-07/0.1363, allocations: 0 / 0.5643 GB, free: 13.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.00284/0.1392, allocations: 1.013 MB / 0.5653 GB, free: 12.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1392, allocations: 55.41 kB / 0.5654 GB, free: 12.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.1395, allocations: 248.9 kB / 0.5656 GB, free: 11.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1395, allocations: 29.7 kB / 0.5656 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1396, allocations: 164.6 kB / 0.5658 GB, free: 11.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.1397, allocations: 95.17 kB / 0.5659 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.1398, allocations: 53.7 kB / 0.5659 GB, free: 11.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1399, allocations: 334.8 kB / 0.5662 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.1402, allocations: 107.9 kB / 0.5663 GB, free: 11.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.1405, allocations: 147.9 kB / 0.5665 GB, free: 11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004708/0.1409, allocations: 252.1 kB / 0.5667 GB, free: 10.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1409, allocations: 4 kB / 0.5667 GB, free: 10.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001193/0.1421, allocations: 490.7 kB / 0.5672 GB, free: 10.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.1422, allocations: 8 kB / 0.5672 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1422, allocations: 0 / 0.5672 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009788/0.1431, allocations: 245.5 kB / 0.5674 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.1433, allocations: 27.98 kB / 0.5675 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004442/0.1477, allocations: 3.693 MB / 0.5711 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.148, allocations: 39.83 kB / 0.5711 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.148, allocations: 8 kB / 0.5711 GB, free: 5.945 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.0001857/0.1482, allocations: 141.8 kB / 0.5713 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/0.1482, allocations: 23.86 kB / 0.5713 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.8e-05/0.1483, allocations: 34.86 kB / 0.5713 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1483, allocations: 4 kB / 0.5713 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/0.1483, allocations: 7.938 kB / 0.5713 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.1483, allocations: 4 kB / 0.5713 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/0.15, allocations: 0.8757 MB / 0.5722 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.15, allocations: 0 / 0.5722 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.44e-05/0.1501, allocations: 19.98 kB / 0.5722 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009022/0.151, allocations: 245.4 kB / 0.5724 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.151, allocations: 4 kB / 0.5724 GB, free: 4.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004605/0.1556, allocations: 3.689 MB / 0.576 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1556, allocations: 0 / 0.576 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.1568, allocations: 0.5291 MB / 0.5766 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.1569, allocations: 124.8 kB / 0.5767 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.157, allocations: 8 kB / 0.5767 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.1572, allocations: 31.91 kB / 0.5767 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.1573, allocations: 23.97 kB / 0.5767 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.1573, allocations: 11.98 kB / 0.5767 GB, free: 15.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.1575, allocations: 180.4 kB / 0.5769 GB, free: 15.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1575, allocations: 0 / 0.5769 GB, free: 15.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.1579, allocations: 103.9 kB / 0.577 GB, free: 15.5 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.00143/0.1594, allocations: 1.065 MB / 0.5781 GB, free: 14.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.1605, allocations: 0.5399 MB / 0.5786 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1605, allocations: 0 / 0.5786 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006189/0.1611, allocations: 429.7 kB / 0.579 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.1615, allocations: 52.34 kB / 0.579 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.1662, allocations: 3.035 MB / 0.582 GB, free: 10.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.1667, allocations: 0.76 MB / 0.5827 GB, free: 9.395 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1668, allocations: 26.28 kB / 0.5828 GB, free: 9.371 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.1669, allocations: 71.42 kB / 0.5828 GB, free: 9.301 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1669, allocations: 0 / 0.5828 GB, free: 9.301 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.2038, allocations: 7.273 MB / 0.5899 GB, free: 2.234 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.53, allocations: 11.8 kB / 0.59 GB, free: 2.223 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 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.693130413070321] 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.615515056997538 10.900554335 10.767496407 Calling exit ...