Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001369/0.001369, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.001535/0.001535, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.435/1.435, allocations: 230.4 MB / 254.7 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.93 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002358/0.002358, allocations: 79.88 kB / 0.4916 GB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1363, allocations: 66.05 MB / 0.5561 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004322/0.1406, allocations: 2.938 MB / 0.559 GB, free: 2.609 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1419, allocations: 0.6895 MB / 0.5597 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1421, allocations: 4 kB / 0.5597 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.1423, allocations: 55.44 kB / 0.5597 GB, free: 1.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.1424, allocations: 87.19 kB / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.1426, allocations: 95.86 kB / 0.5599 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004613/0.1431, allocations: 418 kB / 0.5603 GB, free: 1.266 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/0.1433, allocations: 94.92 kB / 0.5604 GB, free: 1.172 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1435, allocations: 159.5 kB / 0.5606 GB, free: 1.016 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.1437, allocations: 159.3 kB / 0.5607 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.389e-05/0.1437, allocations: 36 kB / 0.5607 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.882e-05/0.1438, allocations: 32 kB / 0.5608 GB, free: 0.793 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.1439, allocations: 75.75 kB / 0.5608 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.144, allocations: 179.2 kB / 0.561 GB, free: 0.543 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.1445, allocations: 386.4 kB / 0.5614 GB, free: 168 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1445, allocations: 4 kB / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1445, allocations: 0 / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1445, allocations: 4 kB / 0.5614 GB, free: 160 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.001073/0.1456, allocations: 0.6423 MB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1456, allocations: 8.031 kB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.343e-05/0.1456, allocations: 8.75 kB / 0.562 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.703e-05/0.1457, allocations: 62.73 kB / 0.5621 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.1458, allocations: 32.75 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.1461, allocations: 288.1 kB / 0.5624 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.1462, allocations: 24.94 kB / 0.5624 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.1462, allocations: 29.12 kB / 0.5625 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005994/0.1468, allocations: 320.5 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1468, allocations: 0 / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.1469, allocations: 15.94 kB / 0.5628 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1469, allocations: 8 kB / 0.5628 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005108/0.1474, allocations: 238.1 kB / 0.563 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.1495, allocations: 1.258 MB / 0.5642 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007771/0.1502, allocations: 439.8 kB / 0.5647 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.1505, allocations: 145.2 kB / 0.5648 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.1506, allocations: 8.109 kB / 0.5648 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.1506, allocations: 38.8 kB / 0.5648 GB, free: 12.38 MB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.1506, allocations: 0 / 0.5648 GB, free: 12.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=27): time 0.00308/0.1537, allocations: 1.007 MB / 0.5658 GB, free: 11.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.1537, allocations: 59.34 kB / 0.5659 GB, free: 11.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.154, allocations: 241 kB / 0.5661 GB, free: 11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.034e-05/0.1541, allocations: 29.7 kB / 0.5661 GB, free: 10.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.1542, allocations: 172.5 kB / 0.5663 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1543, allocations: 91.27 kB / 0.5664 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1544, allocations: 57.66 kB / 0.5664 GB, free: 10.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1546, allocations: 330.8 kB / 0.5668 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.1549, allocations: 103.9 kB / 0.5669 GB, free: 10.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/0.1551, allocations: 148.1 kB / 0.567 GB, free: 10.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/0.1556, allocations: 252.1 kB / 0.5672 GB, free: 9.789 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1556, allocations: 8 kB / 0.5672 GB, free: 9.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001124/0.1568, allocations: 482.7 kB / 0.5677 GB, free: 9.297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1568, allocations: 8 kB / 0.5677 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1568, allocations: 0 / 0.5677 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009796/0.1578, allocations: 237.5 kB / 0.5679 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.1579, allocations: 31.92 kB / 0.568 GB, free: 9.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.1624, allocations: 3.689 MB / 0.5716 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.1626, allocations: 39.7 kB / 0.5716 GB, free: 5.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.1626, allocations: 12 kB / 0.5716 GB, free: 5 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.000171/0.1628, allocations: 137.8 kB / 0.5718 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.1629, allocations: 27.81 kB / 0.5718 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.385e-05/0.1629, allocations: 34.86 kB / 0.5718 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1629, allocations: 4.062 kB / 0.5718 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.163, allocations: 8 kB / 0.5718 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.163, allocations: 3.938 kB / 0.5718 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.1646, allocations: 0.8758 MB / 0.5727 GB, free: 3.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1646, allocations: 0 / 0.5727 GB, free: 3.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.587e-05/0.1647, allocations: 23.88 kB / 0.5727 GB, free: 3.816 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009009/0.1656, allocations: 237.5 kB / 0.5729 GB, free: 3.578 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1656, allocations: 4 kB / 0.5729 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004321/0.17, allocations: 3.689 MB / 0.5765 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.17, allocations: 3.938 kB / 0.5765 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1712, allocations: 0.5251 MB / 0.5771 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.1713, allocations: 128.9 kB / 0.5772 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1714, allocations: 11.92 kB / 0.5772 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.1716, allocations: 23.98 kB / 0.5772 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.1717, allocations: 31.89 kB / 0.5772 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.1717, allocations: 4 kB / 0.5772 GB, free: 14.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.1719, allocations: 176.5 kB / 0.5774 GB, free: 14.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1719, allocations: 4 kB / 0.5774 GB, free: 14.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.1724, allocations: 103.9 kB / 0.5775 GB, free: 14.56 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.001495/0.1739, allocations: 1.069 MB / 0.5786 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.1751, allocations: 0.5439 MB / 0.5791 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1751, allocations: 4.25 kB / 0.5791 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.1758, allocations: 413.4 kB / 0.5795 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.1762, allocations: 44.42 kB / 0.5795 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.1815, allocations: 3.051 MB / 0.5825 GB, free: 9.246 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.1819, allocations: 0.7599 MB / 0.5833 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.614e-05/0.182, allocations: 26.28 kB / 0.5833 GB, free: 8.438 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.1821, allocations: 79.41 kB / 0.5834 GB, free: 8.359 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1821, allocations: 0 / 0.5834 GB, free: 8.359 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/0.2231, allocations: 7.289 MB / 0.5905 GB, free: 1.258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.34, allocations: 6.516 kB / 0.5905 GB, free: 1.254 MB / 446.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.566089475003537] 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.709766726999078 10.723427917 10.576409421 Calling exit ...