Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002163/0.002163, allocations: 215 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2255/0.2255, allocations: 46.92 MB / 357.8 MB, free: 10.33 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.89 kB / 0.4916 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1348, allocations: 65.99 MB / 0.5561 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004404/0.1392, allocations: 2.938 MB / 0.5589 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.1404, allocations: 0.6817 MB / 0.5596 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.1405, allocations: 4 kB / 0.5596 GB, free: 2.207 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1407, allocations: 55.44 kB / 0.5596 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1409, allocations: 91.19 kB / 0.5597 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.141, allocations: 91.86 kB / 0.5598 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004431/0.1415, allocations: 410 kB / 0.5602 GB, free: 1.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.1417, allocations: 94.92 kB / 0.5603 GB, free: 1.477 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.1419, allocations: 151.5 kB / 0.5604 GB, free: 1.328 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1421, allocations: 163.2 kB / 0.5606 GB, free: 1.168 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.314e-05/0.1421, allocations: 36 kB / 0.5606 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.1422, allocations: 36 kB / 0.5607 GB, free: 1.098 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-05/0.1423, allocations: 79.75 kB / 0.5607 GB, free: 1.02 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1424, allocations: 171.2 kB / 0.5609 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004645/0.1429, allocations: 390.4 kB / 0.5613 GB, free: 480 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1429, allocations: 0 / 0.5613 GB, free: 480 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1429, allocations: 0 / 0.5613 GB, free: 480 kB / 414.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1429, allocations: 0 / 0.5613 GB, free: 480 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.001118/0.144, allocations: 0.6468 MB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1441, allocations: 9.109 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.594e-05/0.1441, allocations: 8.75 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.591e-05/0.1442, allocations: 58.73 kB / 0.562 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.605e-05/0.1442, allocations: 40.75 kB / 0.562 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.1446, allocations: 284.3 kB / 0.5623 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.1447, allocations: 20.94 kB / 0.5623 GB, free: 15.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.1447, allocations: 24.38 kB / 0.5623 GB, free: 15.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006168/0.1453, allocations: 332.4 kB / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1453, allocations: 0 / 0.5627 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.1454, allocations: 12 kB / 0.5627 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1454, allocations: 8 kB / 0.5627 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.1459, allocations: 238.1 kB / 0.5629 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.1481, allocations: 1.258 MB / 0.5641 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008092/0.1489, allocations: 441.1 kB / 0.5645 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.1492, allocations: 147.6 kB / 0.5647 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1492, allocations: 4.234 kB / 0.5647 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.1492, allocations: 38.73 kB / 0.5647 GB, free: 12.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.684e-06/0.1492, allocations: 0 / 0.5647 GB, free: 12.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.003158/0.1524, allocations: 1.015 MB / 0.5657 GB, free: 11.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.1524, allocations: 55.41 kB / 0.5658 GB, free: 11.56 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.1527, allocations: 237 kB / 0.566 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.1527, allocations: 29.7 kB / 0.566 GB, free: 11.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1529, allocations: 172.6 kB / 0.5662 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.978e-05/0.153, allocations: 99.22 kB / 0.5663 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.1531, allocations: 49.7 kB / 0.5663 GB, free: 10.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1533, allocations: 334.8 kB / 0.5667 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.1536, allocations: 99.94 kB / 0.5668 GB, free: 10.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.1538, allocations: 155.9 kB / 0.5669 GB, free: 10.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005169/0.1544, allocations: 244.2 kB / 0.5671 GB, free: 10.1 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1544, allocations: 4 kB / 0.5671 GB, free: 10.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001206/0.1556, allocations: 494.6 kB / 0.5676 GB, free: 9.602 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1556, allocations: 4 kB / 0.5676 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1556, allocations: 0 / 0.5676 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.1566, allocations: 237.5 kB / 0.5678 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.1568, allocations: 35.92 kB / 0.5679 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.1615, allocations: 3.689 MB / 0.5715 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.1617, allocations: 35.8 kB / 0.5715 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1617, allocations: 12 kB / 0.5715 GB, free: 5.309 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.0001836/0.1619, allocations: 143 kB / 0.5717 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.162, allocations: 27.92 kB / 0.5717 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.721e-05/0.162, allocations: 38.86 kB / 0.5717 GB, free: 5.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1621, allocations: 7.938 kB / 0.5717 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.1621, allocations: 4 kB / 0.5717 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1621, allocations: 0 / 0.5717 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.1639, allocations: 0.8844 MB / 0.5726 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1639, allocations: 0 / 0.5726 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.877e-05/0.164, allocations: 23.94 kB / 0.5726 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009594/0.1649, allocations: 229.5 kB / 0.5728 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.165, allocations: 8 kB / 0.5728 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/0.1697, allocations: 3.681 MB / 0.5764 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1697, allocations: 0 / 0.5764 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.1709, allocations: 0.533 MB / 0.577 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.171, allocations: 128.8 kB / 0.5771 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.1711, allocations: 7.984 kB / 0.5771 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.1713, allocations: 23.98 kB / 0.5771 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.51e-05/0.1714, allocations: 31.95 kB / 0.5771 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.1714, allocations: 19.94 kB / 0.5772 GB, free: 15.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.1716, allocations: 172.5 kB / 0.5773 GB, free: 14.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1716, allocations: 3.938 kB / 0.5773 GB, free: 14.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.1721, allocations: 107.9 kB / 0.5774 GB, free: 14.85 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.001459/0.1735, allocations: 1.065 MB / 0.5785 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.1746, allocations: 0.5401 MB / 0.579 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1746, allocations: 0 / 0.579 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.1753, allocations: 417.5 kB / 0.5794 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.1756, allocations: 48.48 kB / 0.5794 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.1806, allocations: 3.039 MB / 0.5824 GB, free: 9.547 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.181, allocations: 0.7678 MB / 0.5832 GB, free: 8.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.078e-05/0.1811, allocations: 18.28 kB / 0.5832 GB, free: 8.734 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1812, allocations: 79.41 kB / 0.5833 GB, free: 8.656 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1812, allocations: 4 kB / 0.5833 GB, free: 8.652 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.2129, allocations: 7.292 MB / 0.5904 GB, free: 1.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/10.96, allocations: 8.062 kB / 0.5904 GB, free: 1.562 MB / 446.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.335630616988055] 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'] 11.107132059987634 11.352291689 11.206857565 Calling exit ...