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.001237/0.001237, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001361/0.001361, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.379/1.379, allocations: 207.6 MB / 231.1 MB, free: 4.109 MB / 174.1 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.4093/0.4093, allocations: 49.51 MB / 332.5 MB, free: 1.141 MB / 254.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002101/0.002101, allocations: 78.86 kB / 470.8 MB, free: 41.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09987, allocations: 62.35 MB / 0.5207 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003369/0.1032, allocations: 2.967 MB / 0.5236 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1047, allocations: 0.8189 MB / 0.5244 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.1049, allocations: 11.94 kB / 0.5244 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1051, allocations: 55.33 kB / 0.5244 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.1054, allocations: 154.8 kB / 0.5246 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.1057, allocations: 107.8 kB / 0.5247 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005414/0.1062, allocations: 490.3 kB / 0.5251 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.1065, allocations: 104.1 kB / 0.5252 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.1068, allocations: 199.1 kB / 0.5254 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.1071, allocations: 214.9 kB / 0.5256 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.419e-05/0.1071, allocations: 32 kB / 0.5257 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.972e-05/0.1072, allocations: 32 kB / 0.5257 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.92e-05/0.1073, allocations: 87.62 kB / 0.5258 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.1075, allocations: 218.7 kB / 0.526 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005332/0.108, allocations: 405.9 kB / 0.5264 GB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.108, allocations: 0 / 0.5264 GB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.108, allocations: 0 / 0.5264 GB, free: 12.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.108, allocations: 0 / 0.5264 GB, free: 12.45 MB / 398.1 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.001446/0.1095, allocations: 0.7669 MB / 0.5271 GB, free: 11.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1095, allocations: 8.031 kB / 0.5271 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.146e-05/0.1096, allocations: 70.72 kB / 0.5272 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.1098, allocations: 56.55 kB / 0.5272 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.1104, allocations: 362.4 kB / 0.5276 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1104, allocations: 21.03 kB / 0.5276 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.341e-05/0.1105, allocations: 44.08 kB / 0.5277 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.111, allocations: 293.8 kB / 0.5279 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.111, allocations: 3.984 kB / 0.5279 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1111, allocations: 16 kB / 0.528 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.1111, allocations: 4 kB / 0.528 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.1115, allocations: 206.1 kB / 0.5282 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.1133, allocations: 1.109 MB / 0.5292 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.1137, allocations: 235 kB / 0.5295 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.1139, allocations: 108.8 kB / 0.5296 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1139, allocations: 4 kB / 0.5296 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.1139, allocations: 35.09 kB / 0.5296 GB, free: 8.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.342e-06/0.1139, allocations: 0 / 0.5296 GB, free: 8.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001896/0.1158, allocations: 0.9414 MB / 0.5305 GB, free: 7.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.1159, allocations: 51.41 kB / 0.5306 GB, free: 7.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004201/0.1163, allocations: 369.6 kB / 0.5309 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.1163, allocations: 29.7 kB / 0.5309 GB, free: 7.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.1165, allocations: 216.5 kB / 0.5312 GB, free: 7.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1166, allocations: 126.9 kB / 0.5313 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1167, allocations: 62.08 kB / 0.5313 GB, free: 7.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1169, allocations: 350.7 kB / 0.5317 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.1171, allocations: 92.7 kB / 0.5318 GB, free: 6.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.1173, allocations: 133.7 kB / 0.5319 GB, free: 6.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.1177, allocations: 243.7 kB / 0.5321 GB, free: 6.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1177, allocations: 0 / 0.5321 GB, free: 6.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009444/0.1186, allocations: 417.6 kB / 0.5325 GB, free: 5.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1186, allocations: 4 kB / 0.5325 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.1186, allocations: 4.125 kB / 0.5325 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005949/0.1192, allocations: 116.7 kB / 0.5326 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/0.1197, allocations: 99.88 kB / 0.5327 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00366/0.1233, allocations: 3.337 MB / 0.536 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.1236, allocations: 27.94 kB / 0.536 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.1236, allocations: 12 kB / 0.536 GB, free: 1.895 MB / 398.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: 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.000183/0.1238, allocations: 149.7 kB / 0.5362 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.1239, allocations: 39.77 kB / 0.5362 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005416/0.1244, allocations: 301.9 kB / 0.5365 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.1244, allocations: 4 kB / 0.5365 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1244, allocations: 7.938 kB / 0.5365 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1244, allocations: 3.984 kB / 0.5365 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.1255, allocations: 0.7486 MB / 0.5372 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1255, allocations: 0 / 0.5372 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.1259, allocations: 79.91 kB / 0.5373 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1259, allocations: 3.984 kB / 0.5373 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.1259, allocations: 11.98 kB / 0.5373 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1259, allocations: 0 / 0.5373 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.1259, allocations: 4 kB / 0.5373 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007015/0.1266, allocations: 0.4886 MB / 0.5378 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.1268, allocations: 144.7 kB / 0.538 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.1268, allocations: 4 kB / 0.538 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.127, allocations: 8 kB / 0.538 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.1271, allocations: 23.91 kB / 0.538 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.1271, allocations: 16 kB / 0.538 GB, free: 15.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002703/0.1274, allocations: 259.2 kB / 0.5383 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1274, allocations: 0 / 0.5383 GB, free: 15.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003739/0.1277, allocations: 92 kB / 0.5383 GB, free: 15.43 MB / 414.1 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.001027/0.1288, allocations: 1.032 MB / 0.5393 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009776/0.1297, allocations: 410.3 kB / 0.5397 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1297, allocations: 4 kB / 0.5397 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.1299, allocations: 120.1 kB / 0.5399 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.1304, allocations: 78.94 kB / 0.5399 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0058/0.1362, allocations: 3.981 MB / 0.5438 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.1367, allocations: 0.8237 MB / 0.5446 GB, free: 8.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001419/0.1368, allocations: 34.95 kB / 0.5447 GB, free: 8.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.137, allocations: 143.4 kB / 0.5448 GB, free: 8.637 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.137, allocations: 8 kB / 0.5448 GB, free: 8.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.1743, allocations: 8.814 MB / 0.5534 GB, free: 15.76 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.05, allocations: 7.938 kB / 0.5534 GB, free: 15.75 MB / 430.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.03271262999624] Failed to read output from testmodel.py, exit status != 0: 12.148944622997078 12.171392003 12.059372612 Calling exit ...