Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00176/0.00176, 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.001804/0.001804, allocations: 215.1 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.571/1.571, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2162/0.2162, allocations: 44.91 MB / 355.8 MB, free: 12.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 63.91 kB / 0.4885 GB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1221, allocations: 65.43 MB / 0.5524 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004636/0.1268, allocations: 2.933 MB / 0.5553 GB, free: 7.223 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1281, allocations: 0.6894 MB / 0.556 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.1282, allocations: 11.94 kB / 0.556 GB, free: 6.516 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.1284, allocations: 47.5 kB / 0.556 GB, free: 6.469 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.1286, allocations: 99.11 kB / 0.5561 GB, free: 6.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.1288, allocations: 87.88 kB / 0.5562 GB, free: 6.285 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.1292, allocations: 414 kB / 0.5566 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.1294, allocations: 90.94 kB / 0.5567 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.1296, allocations: 155.5 kB / 0.5568 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.1298, allocations: 167.3 kB / 0.557 GB, free: 5.473 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.1299, allocations: 32 kB / 0.557 GB, free: 5.441 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.13, allocations: 36 kB / 0.5571 GB, free: 5.406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.962e-05/0.13, allocations: 75.75 kB / 0.5571 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.1302, allocations: 163.2 kB / 0.5573 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.1306, allocations: 398.4 kB / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1306, allocations: 0 / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1306, allocations: 0 / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1306, allocations: 7.875 kB / 0.5577 GB, free: 4.773 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.001244/0.1319, allocations: 0.6429 MB / 0.5583 GB, free: 4.082 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.1319, allocations: 8.031 kB / 0.5583 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.404e-05/0.132, allocations: 8.75 kB / 0.5583 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.767e-05/0.132, allocations: 66.72 kB / 0.5584 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.957e-05/0.1321, allocations: 36.75 kB / 0.5584 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.1326, allocations: 276.4 kB / 0.5587 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.1326, allocations: 20.94 kB / 0.5587 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.1327, allocations: 28.38 kB / 0.5587 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.1333, allocations: 324.5 kB / 0.559 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1333, allocations: 0 / 0.559 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.1334, allocations: 16 kB / 0.5591 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1334, allocations: 8 kB / 0.5591 GB, free: 3.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006404/0.134, allocations: 242.1 kB / 0.5593 GB, free: 3.008 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.137, allocations: 1.246 MB / 0.5605 GB, free: 1.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.1381, allocations: 449 kB / 0.5609 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.1386, allocations: 141 kB / 0.5611 GB, free: 1.059 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.1386, allocations: 4.234 kB / 0.5611 GB, free: 1.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.1386, allocations: 34.8 kB / 0.5611 GB, free: 1.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 2.815e-06/0.1386, allocations: 4 kB / 0.5611 GB, free: 1.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.004294/0.1429, allocations: 1.007 MB / 0.5621 GB, free: 15.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.143, allocations: 55.41 kB / 0.5621 GB, free: 15.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.1434, allocations: 241 kB / 0.5624 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.1434, allocations: 29.7 kB / 0.5624 GB, free: 15.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.1436, allocations: 176.6 kB / 0.5626 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1437, allocations: 95.16 kB / 0.5627 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.1438, allocations: 53.7 kB / 0.5627 GB, free: 15.28 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.144, allocations: 338.8 kB / 0.563 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.1443, allocations: 99.89 kB / 0.5631 GB, free: 14.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003803/0.1447, allocations: 151.9 kB / 0.5633 GB, free: 14.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.1454, allocations: 244.2 kB / 0.5635 GB, free: 14.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1454, allocations: 3.938 kB / 0.5635 GB, free: 14.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001727/0.1472, allocations: 0.4909 MB / 0.564 GB, free: 13.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1472, allocations: 4 kB / 0.564 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1472, allocations: 0 / 0.564 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.1486, allocations: 237.5 kB / 0.5642 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.1488, allocations: 35.98 kB / 0.5643 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006291/0.1551, allocations: 3.689 MB / 0.5679 GB, free: 9.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.1555, allocations: 35.8 kB / 0.5679 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/0.1555, allocations: 12 kB / 0.5679 GB, free: 9.621 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.0002285/0.1558, allocations: 137.8 kB / 0.568 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.04e-05/0.1558, allocations: 27.84 kB / 0.5681 GB, free: 9.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.286e-05/0.1559, allocations: 38.94 kB / 0.5681 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.1559, allocations: 7.938 kB / 0.5681 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.156, allocations: 3.984 kB / 0.5681 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.156, allocations: 0 / 0.5681 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/0.1584, allocations: 0.8844 MB / 0.569 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1584, allocations: 0 / 0.569 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.1585, allocations: 15.98 kB / 0.569 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.1598, allocations: 237.5 kB / 0.5692 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.1598, allocations: 8 kB / 0.5692 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006134/0.1659, allocations: 3.681 MB / 0.5728 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.1659, allocations: 3.938 kB / 0.5728 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.1676, allocations: 0.533 MB / 0.5733 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.1678, allocations: 128.8 kB / 0.5735 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.1679, allocations: 0 / 0.5735 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000346/0.1682, allocations: 27.97 kB / 0.5735 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1683, allocations: 35.89 kB / 0.5735 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.1684, allocations: 11.94 kB / 0.5735 GB, free: 3.449 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003426/0.1687, allocations: 176.5 kB / 0.5737 GB, free: 3.277 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1687, allocations: 0 / 0.5737 GB, free: 3.277 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006901/0.1694, allocations: 107.9 kB / 0.5738 GB, free: 3.172 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.002027/0.1714, allocations: 1.073 MB / 0.5749 GB, free: 2.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.173, allocations: 0.5401 MB / 0.5754 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.173, allocations: 4 kB / 0.5754 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000934/0.1739, allocations: 413.5 kB / 0.5758 GB, free: 1.066 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.1745, allocations: 48.53 kB / 0.5758 GB, free: 1.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007076/0.1816, allocations: 3.041 MB / 0.5788 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.1821, allocations: 0.7639 MB / 0.5795 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.1822, allocations: 18.3 kB / 0.5796 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.1824, allocations: 75.41 kB / 0.5796 GB, free: 12.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1824, allocations: 0 / 0.5796 GB, free: 12.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04059/0.223, allocations: 7.295 MB / 0.5868 GB, free: 5.891 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.77, allocations: 11.94 kB / 0.5868 GB, free: 5.883 MB / 446.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.2143846929539] 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.917530272970907 11.219298623 11.085600233 Calling exit ...