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.001667/0.001667, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001464/0.001464, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.497/1.497, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.278/0.278, allocations: 46.93 MB / 361.6 MB, free: 4.289 MB / 286.1 MB " [Timeout remaining time 179] 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.002918/0.002918, allocations: 67.91 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3358, allocations: 66.03 MB / 0.5614 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004436/0.3402, allocations: 2.948 MB / 0.5643 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3415, allocations: 0.6895 MB / 0.565 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.3417, allocations: 11.94 kB / 0.565 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.3418, allocations: 51.44 kB / 0.565 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.342, allocations: 95.17 kB / 0.5651 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001795/0.3422, allocations: 91.81 kB / 0.5652 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.3427, allocations: 418 kB / 0.5656 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.3429, allocations: 91.34 kB / 0.5657 GB, free: 252 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.3431, allocations: 147.5 kB / 0.5658 GB, free: 104 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.3433, allocations: 167.4 kB / 0.566 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.393e-05/0.3434, allocations: 32 kB / 0.566 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.649e-05/0.3434, allocations: 39.94 kB / 0.5661 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.169e-05/0.3435, allocations: 75.75 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.3437, allocations: 163.2 kB / 0.5663 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004646/0.3441, allocations: 406.3 kB / 0.5667 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3441, allocations: 0 / 0.5667 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3441, allocations: 0 / 0.5667 GB, free: 15.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.3441, allocations: 0 / 0.5667 GB, free: 15.23 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.001195/0.3453, allocations: 0.5638 MB / 0.5672 GB, free: 14.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3454, allocations: 12.03 kB / 0.5672 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.632e-05/0.3454, allocations: 4.844 kB / 0.5672 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.65e-05/0.3455, allocations: 70.72 kB / 0.5673 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.308e-05/0.3456, allocations: 32.75 kB / 0.5673 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.3461, allocations: 210.6 kB / 0.5675 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.3461, allocations: 25.03 kB / 0.5676 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.3462, allocations: 24.38 kB / 0.5676 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006435/0.3468, allocations: 325.9 kB / 0.5679 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3468, allocations: 3.938 kB / 0.5679 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.3469, allocations: 16 kB / 0.5679 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3469, allocations: 8 kB / 0.5679 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005234/0.3474, allocations: 238.5 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.3496, allocations: 1.219 MB / 0.5693 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.3503, allocations: 290.9 kB / 0.5696 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003215/0.3506, allocations: 133.3 kB / 0.5697 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3506, allocations: 4.234 kB / 0.5697 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3507, allocations: 42.78 kB / 0.5698 GB, free: 11.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.274e-06/0.3507, allocations: 0 / 0.5698 GB, free: 11.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003092/0.3538, allocations: 0.86 MB / 0.5706 GB, free: 11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.3538, allocations: 51.41 kB / 0.5707 GB, free: 10.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.3541, allocations: 241.1 kB / 0.5709 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.3541, allocations: 33.7 kB / 0.5709 GB, free: 10.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3543, allocations: 168.6 kB / 0.5711 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.39e-05/0.3543, allocations: 103.1 kB / 0.5712 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3544, allocations: 53.7 kB / 0.5712 GB, free: 10.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3546, allocations: 334.8 kB / 0.5716 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.3548, allocations: 99.95 kB / 0.5717 GB, free: 9.883 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.3551, allocations: 152.8 kB / 0.5718 GB, free: 9.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.3556, allocations: 248.6 kB / 0.572 GB, free: 9.461 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3556, allocations: 0 / 0.572 GB, free: 9.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001264/0.3569, allocations: 494.6 kB / 0.5725 GB, free: 8.965 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3569, allocations: 10.64 kB / 0.5725 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3569, allocations: 4 kB / 0.5725 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.358, allocations: 241.5 kB / 0.5728 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.3582, allocations: 39.92 kB / 0.5728 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004743/0.3629, allocations: 3.478 MB / 0.5762 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.3632, allocations: 35.8 kB / 0.5762 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.3632, allocations: 8 kB / 0.5762 GB, free: 4.922 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.0002448/0.3635, allocations: 145.7 kB / 0.5764 GB, free: 4.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.3635, allocations: 23.86 kB / 0.5764 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.498e-05/0.3636, allocations: 34.95 kB / 0.5764 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3636, allocations: 12 kB / 0.5764 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/0.3636, allocations: 4 kB / 0.5764 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3636, allocations: 0 / 0.5764 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.3655, allocations: 0.8445 MB / 0.5773 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.3655, allocations: 3.984 kB / 0.5773 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.176e-05/0.3655, allocations: 16 kB / 0.5773 GB, free: 3.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009/0.3664, allocations: 249.4 kB / 0.5775 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3665, allocations: 4 kB / 0.5775 GB, free: 3.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004466/0.3709, allocations: 3.474 MB / 0.5809 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3709, allocations: 4.031 kB / 0.5809 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.3721, allocations: 0.5291 MB / 0.5814 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.3722, allocations: 47.72 kB / 0.5815 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.3723, allocations: 4 kB / 0.5815 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.3725, allocations: 31.91 kB / 0.5815 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3726, allocations: 27.95 kB / 0.5816 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.3726, allocations: 7.938 kB / 0.5816 GB, free: 15.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.3728, allocations: 188.4 kB / 0.5817 GB, free: 14.96 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3728, allocations: 0 / 0.5817 GB, free: 14.96 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004354/0.3733, allocations: 103.9 kB / 0.5818 GB, free: 14.86 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.001428/0.3747, allocations: 1.065 MB / 0.5829 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3758, allocations: 0.5366 MB / 0.5834 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3758, allocations: 4.062 kB / 0.5834 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006334/0.3764, allocations: 425.4 kB / 0.5838 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3768, allocations: 52.39 kB / 0.5839 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004895/0.3817, allocations: 3.045 MB / 0.5868 GB, free: 9.535 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.3821, allocations: 0.76 MB / 0.5876 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.3822, allocations: 26.27 kB / 0.5876 GB, free: 8.727 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.3824, allocations: 75.42 kB / 0.5877 GB, free: 8.652 MB / 430.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3824, allocations: 0 / 0.5877 GB, free: 8.652 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.4185, allocations: 7.532 MB / 0.595 GB, free: 1.316 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.46, allocations: 10.98 kB / 0.595 GB, free: 1.309 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.561730548040941] 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'] 12.628619952010922 12.653744812 12.304627635 Calling exit ...