Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.0008743/0.0008743, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008615/0.0008615, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.83/0.83, allocations: 158.6 MB / 185.7 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.1769/0.1769, allocations: 36.34 MB / 274.3 MB, free: 10.92 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 414.3 MB, free: 6.113 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.772e-05, allocations: 10.22 kB / 414.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.002919/0.002936, allocations: 2.725 MB / 417.1 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.004074, allocations: 0.7914 MB / 417.8 MB, free: 2.559 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.004225, allocations: 7.938 kB / 417.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.004369, allocations: 63.27 kB / 417.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.004663, allocations: 146.8 kB / 418.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.004874, allocations: 115.7 kB / 418.2 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003767/0.005251, allocations: 0.502 MB / 418.7 MB, free: 1.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.005435, allocations: 96.59 kB / 418.8 MB, free: 1.621 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.00571, allocations: 283.2 kB / 419 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.005871, allocations: 147.5 kB / 419.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.912e-05/0.00591, allocations: 36 kB / 419.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.314e-05/0.005973, allocations: 32 kB / 419.3 MB, free: 1.133 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.006025, allocations: 87.59 kB / 419.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.464e-05/0.00612, allocations: 147.5 kB / 419.5 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.006459, allocations: 406.5 kB / 419.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.006462, allocations: 0 / 419.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006463, allocations: 0 / 419.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.006469, allocations: 4 kB / 419.9 MB, free: 0.5 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008423/0.007312, allocations: 0.6838 MB / 420.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.007348, allocations: 8.031 kB / 420.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.935e-05/0.007407, allocations: 70.72 kB / 420.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.149e-05/0.007499, allocations: 56.55 kB / 420.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.007838, allocations: 299.8 kB / 421 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.007856, allocations: 21.03 kB / 421 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.007899, allocations: 36.33 kB / 421 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.008246, allocations: 306.4 kB / 421.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.008261, allocations: 3.938 kB / 421.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.008281, allocations: 16 kB / 421.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.008289, allocations: 4 kB / 421.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.00856, allocations: 202.4 kB / 421.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.009719, allocations: 0.9677 MB / 422.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.009999, allocations: 231 kB / 422.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.01012, allocations: 108.8 kB / 422.9 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.01015, allocations: 4 kB / 422.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.01017, allocations: 46.44 kB / 422.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.383e-06/0.01017, allocations: 0 / 422.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001112/0.01128, allocations: 0.7892 MB / 423.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.01132, allocations: 55.41 kB / 423.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.01157, allocations: 361.7 kB / 424.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.01159, allocations: 33.7 kB / 424.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.0117, allocations: 212.6 kB / 424.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/0.01176, allocations: 123 kB / 424.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.01183, allocations: 66.08 kB / 424.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.01193, allocations: 354.8 kB / 424.9 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.01204, allocations: 84.72 kB / 425 MB, free: 11.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.01217, allocations: 137.5 kB / 425.1 MB, free: 11.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.01243, allocations: 243.7 kB / 425.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01243, allocations: 3.938 kB / 425.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005626/0.013, allocations: 417.6 kB / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01301, allocations: 10.5 kB / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.01302, allocations: 0 / 425.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.01335, allocations: 124.8 kB / 425.9 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.0136, allocations: 91.88 kB / 426 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.01566, allocations: 3.122 MB / 429.1 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.01577, allocations: 12 kB / 429.1 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.01579, allocations: 16 kB / 429.1 MB, free: 6.738 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.0159, allocations: 153.8 kB / 429.3 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.01595, allocations: 43.7 kB / 429.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000317/0.01626, allocations: 305.9 kB / 429.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.01626, allocations: 0 / 429.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.01627, allocations: 4 kB / 429.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.01627, allocations: 0 / 429.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000648/0.01692, allocations: 0.6815 MB / 430.3 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.01692, allocations: 0 / 430.3 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.01713, allocations: 75.89 kB / 430.4 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.01713, allocations: 4 kB / 430.4 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.01714, allocations: 11.94 kB / 430.4 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.01715, allocations: 0 / 430.4 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.01715, allocations: 0 / 430.4 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004246/0.01757, allocations: 0.5006 MB / 430.9 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.236e-05/0.01765, allocations: 63.55 kB / 431 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.01768, allocations: 16 kB / 431 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.01778, allocations: 8 kB / 431 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.01782, allocations: 15.95 kB / 431 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.01783, allocations: 16 kB / 431 MB, free: 4.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001718/0.018, allocations: 255.2 kB / 431.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.018, allocations: 0 / 431.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000254/0.01826, allocations: 92 kB / 431.3 MB, free: 4.438 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000608/0.01886, allocations: 1.028 MB / 432.4 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005804/0.01945, allocations: 422.5 kB / 432.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.01945, allocations: 0 / 432.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.01957, allocations: 120.4 kB / 432.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.01989, allocations: 77.44 kB / 433 MB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.02353, allocations: 3.858 MB / 436.8 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.02366, allocations: 212.5 kB / 437 MB, free: 14.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.02377, allocations: 46.94 kB / 437.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.02392, allocations: 140.5 kB / 437.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02392, allocations: 0 / 437.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.05276, allocations: 9.576 MB / 446.8 MB, free: 4.746 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/8.28, allocations: 15.84 kB / 446.8 MB, free: 4.73 MB / 378.7 MB " [Timeout remaining time 652] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --stepSize=0.016 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.319213232956827] Failed to read output from testmodel.py, exit status != 0: 8.376049903221428 8.557756671 8.549265908 Calling exit ...