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.001315/0.001315, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001463/0.001463, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.484/1.484, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.2406/0.2406, allocations: 46.92 MB / 361.6 MB, free: 4.164 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-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.002384/0.002384, allocations: 71.88 kB / 0.497 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4165, allocations: 66.09 MB / 0.5615 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004839/0.4214, allocations: 2.951 MB / 0.5644 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.4228, allocations: 0.6933 MB / 0.5651 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.423, allocations: 7.938 kB / 0.5651 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.4232, allocations: 47.5 kB / 0.5651 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.4233, allocations: 103.1 kB / 0.5652 GB, free: 468 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001856/0.4235, allocations: 91.86 kB / 0.5653 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004656/0.424, allocations: 414.2 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.4242, allocations: 91.27 kB / 0.5658 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.4244, allocations: 159.5 kB / 0.5659 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.4246, allocations: 167.3 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.4247, allocations: 32 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.502e-05/0.4247, allocations: 36 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.117e-05/0.4248, allocations: 75.77 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.4249, allocations: 171.2 kB / 0.5664 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.4254, allocations: 394.4 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4254, allocations: 0 / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4254, allocations: 0 / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.4254, allocations: 0 / 0.5668 GB, free: 14.86 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.001052/0.4265, allocations: 0.5637 MB / 0.5673 GB, free: 14.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4265, allocations: 12.03 kB / 0.5673 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.499e-05/0.4266, allocations: 70.66 kB / 0.5674 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.505e-05/0.4267, allocations: 32.75 kB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.4271, allocations: 215.6 kB / 0.5676 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.4271, allocations: 21.03 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.4272, allocations: 24.38 kB / 0.5677 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006147/0.4278, allocations: 326 kB / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.4278, allocations: 0 / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.4278, allocations: 16 kB / 0.568 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.4278, allocations: 11.98 kB / 0.568 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000509/0.4283, allocations: 246.4 kB / 0.5683 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.4304, allocations: 1.208 MB / 0.5694 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.4311, allocations: 302.8 kB / 0.5697 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.4314, allocations: 141.3 kB / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.4314, allocations: 240 / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.4314, allocations: 34.8 kB / 0.5699 GB, free: 11.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.082e-06/0.4314, allocations: 4 kB / 0.5699 GB, free: 11.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.00264/0.4341, allocations: 0.8562 MB / 0.5707 GB, free: 10.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.4341, allocations: 55.41 kB / 0.5708 GB, free: 10.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.4344, allocations: 237.1 kB / 0.571 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4344, allocations: 33.64 kB / 0.571 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.4346, allocations: 168.6 kB / 0.5712 GB, free: 10.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.48e-05/0.4346, allocations: 99.16 kB / 0.5713 GB, free: 10 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.4347, allocations: 61.64 kB / 0.5714 GB, free: 9.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4349, allocations: 334.8 kB / 0.5717 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.4351, allocations: 99.95 kB / 0.5718 GB, free: 9.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.4354, allocations: 151.9 kB / 0.5719 GB, free: 9.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.4359, allocations: 244.2 kB / 0.5721 GB, free: 9.082 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.4359, allocations: 4 kB / 0.5722 GB, free: 9.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001088/0.437, allocations: 494.7 kB / 0.5726 GB, free: 8.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.437, allocations: 8 kB / 0.5726 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.437, allocations: 0 / 0.5726 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009082/0.4379, allocations: 237.5 kB / 0.5729 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.4381, allocations: 31.98 kB / 0.5729 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004322/0.4424, allocations: 3.482 MB / 0.5763 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.4426, allocations: 35.8 kB / 0.5763 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.4426, allocations: 12 kB / 0.5763 GB, free: 4.551 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.0001742/0.4428, allocations: 137.8 kB / 0.5765 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.775e-05/0.4429, allocations: 27.84 kB / 0.5765 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.976e-05/0.4429, allocations: 39.03 kB / 0.5765 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.4429, allocations: 0 / 0.5765 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.4429, allocations: 11.94 kB / 0.5765 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4429, allocations: 3.984 kB / 0.5765 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.4446, allocations: 0.8559 MB / 0.5774 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4446, allocations: 0 / 0.5774 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.4446, allocations: 12 kB / 0.5774 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00083/0.4455, allocations: 233.5 kB / 0.5776 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.4455, allocations: 8 kB / 0.5776 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004181/0.4497, allocations: 3.486 MB / 0.581 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4497, allocations: 3.938 kB / 0.581 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.4508, allocations: 0.529 MB / 0.5815 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.4509, allocations: 43.77 kB / 0.5816 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.4509, allocations: 8 kB / 0.5816 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.4511, allocations: 27.97 kB / 0.5816 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/0.4512, allocations: 31.88 kB / 0.5817 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.4512, allocations: 11.94 kB / 0.5817 GB, free: 14.76 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.4514, allocations: 176.5 kB / 0.5818 GB, free: 14.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4514, allocations: 0 / 0.5818 GB, free: 14.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004367/0.4518, allocations: 107.9 kB / 0.5819 GB, free: 14.49 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.001368/0.4532, allocations: 1.065 MB / 0.583 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.4543, allocations: 0.5404 MB / 0.5835 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4543, allocations: 0 / 0.5835 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006196/0.4549, allocations: 429.4 kB / 0.5839 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.4553, allocations: 44.55 kB / 0.584 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004649/0.4599, allocations: 3.038 MB / 0.5869 GB, free: 9.176 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.4604, allocations: 0.7639 MB / 0.5877 GB, free: 8.387 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.4605, allocations: 22.28 kB / 0.5877 GB, free: 8.367 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.4606, allocations: 75.41 kB / 0.5878 GB, free: 8.293 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4606, allocations: 0 / 0.5878 GB, free: 8.293 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.5017, allocations: 7.451 MB / 0.595 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.967/10.47, allocations: 8.062 kB / 0.595 GB, free: 0.9609 MB / 430.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.408588690683246] 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.559368593152612 10.589642011 10.15874153 Calling exit ...