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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 119.9 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.471/1.471, allocations: 207.6 MB / 231.1 MB, free: 4.066 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4098/0.4098, allocations: 49.51 MB / 332.5 MB, free: 0.7461 MB / 254.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 72.53 kB / 470.8 MB, free: 41.07 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09407, allocations: 62.34 MB / 0.5206 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003628/0.0977, allocations: 2.972 MB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.09961, allocations: 0.815 MB / 0.5243 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.09997, allocations: 7.938 kB / 0.5243 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.1002, allocations: 59.38 kB / 0.5244 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005221/0.1007, allocations: 142.8 kB / 0.5245 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1011, allocations: 115.8 kB / 0.5246 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.1018, allocations: 494.3 kB / 0.5251 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.1021, allocations: 96.14 kB / 0.5252 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.1024, allocations: 199.1 kB / 0.5254 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.1028, allocations: 210.8 kB / 0.5256 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.691e-05/0.1028, allocations: 36 kB / 0.5256 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.103, allocations: 40 kB / 0.5256 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.553e-05/0.1031, allocations: 83.62 kB / 0.5257 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.1033, allocations: 218.7 kB / 0.5259 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.1039, allocations: 410 kB / 0.5263 GB, free: 12.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1039, allocations: 0 / 0.5263 GB, free: 12.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1039, allocations: 0 / 0.5263 GB, free: 12.46 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.1039, allocations: 3.938 kB / 0.5263 GB, free: 12.46 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.001659/0.1056, allocations: 0.7591 MB / 0.5271 GB, free: 11.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1056, allocations: 8.031 kB / 0.5271 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.695e-05/0.1057, allocations: 62.72 kB / 0.5271 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.1059, allocations: 56.61 kB / 0.5272 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006002/0.1065, allocations: 366.4 kB / 0.5275 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.1065, allocations: 25.03 kB / 0.5276 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.1066, allocations: 40.06 kB / 0.5276 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.1071, allocations: 297.8 kB / 0.5279 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.1071, allocations: 3.938 kB / 0.5279 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.1071, allocations: 16 kB / 0.5279 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1072, allocations: 4 kB / 0.5279 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.1076, allocations: 202.1 kB / 0.5281 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.1095, allocations: 1.116 MB / 0.5292 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004669/0.11, allocations: 223 kB / 0.5294 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.1102, allocations: 116.8 kB / 0.5295 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.1102, allocations: 4 kB / 0.5295 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.1103, allocations: 35.08 kB / 0.5296 GB, free: 8.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.1103, allocations: 0 / 0.5296 GB, free: 8.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00206/0.1123, allocations: 0.9375 MB / 0.5305 GB, free: 7.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.1124, allocations: 59.41 kB / 0.5305 GB, free: 7.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.1128, allocations: 365.6 kB / 0.5309 GB, free: 7.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.1129, allocations: 29.7 kB / 0.5309 GB, free: 7.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.113, allocations: 204.6 kB / 0.5311 GB, free: 7.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.1131, allocations: 126.9 kB / 0.5312 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.1133, allocations: 74.06 kB / 0.5313 GB, free: 7.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1134, allocations: 350.7 kB / 0.5316 GB, free: 6.703 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.1137, allocations: 88.7 kB / 0.5317 GB, free: 6.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.1139, allocations: 129.8 kB / 0.5318 GB, free: 6.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.1143, allocations: 243.8 kB / 0.5321 GB, free: 6.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1143, allocations: 3.938 kB / 0.5321 GB, free: 6.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001021/0.1153, allocations: 421.6 kB / 0.5325 GB, free: 5.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1153, allocations: 4 kB / 0.5325 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1153, allocations: 7.984 kB / 0.5325 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006492/0.116, allocations: 124.8 kB / 0.5326 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.1164, allocations: 95.86 kB / 0.5327 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0038/0.1202, allocations: 3.337 MB / 0.5359 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.1205, allocations: 15.89 kB / 0.536 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.1205, allocations: 12 kB / 0.536 GB, free: 1.914 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.0001924/0.1207, allocations: 157.8 kB / 0.5361 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.75e-05/0.1208, allocations: 39.77 kB / 0.5362 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005242/0.1213, allocations: 298 kB / 0.5364 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1213, allocations: 4 kB / 0.5365 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1213, allocations: 3.938 kB / 0.5365 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1213, allocations: 0 / 0.5365 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1224, allocations: 0.7527 MB / 0.5372 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1225, allocations: 7.984 kB / 0.5372 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004228/0.1229, allocations: 76.17 kB / 0.5373 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1229, allocations: 4 kB / 0.5373 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1229, allocations: 8 kB / 0.5373 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1229, allocations: 7.938 kB / 0.5373 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1229, allocations: 0 / 0.5373 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.1236, allocations: 0.4963 MB / 0.5378 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.1238, allocations: 136.8 kB / 0.5379 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.1239, allocations: 11.94 kB / 0.5379 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1241, allocations: 11.98 kB / 0.5379 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.1241, allocations: 15.97 kB / 0.5379 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1241, allocations: 12 kB / 0.538 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000283/0.1244, allocations: 251.2 kB / 0.5382 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1244, allocations: 0 / 0.5382 GB, free: 15.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003711/0.1248, allocations: 88 kB / 0.5383 GB, free: 15.45 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.00108/0.1259, allocations: 1.04 MB / 0.5393 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009574/0.1268, allocations: 426.5 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.1268, allocations: 4 kB / 0.5397 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.127, allocations: 115.8 kB / 0.5398 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.0004913/0.1275, allocations: 71.06 kB / 0.5399 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006159/0.1337, allocations: 3.987 MB / 0.5438 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.1342, allocations: 0.8159 MB / 0.5446 GB, free: 8.824 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.1343, allocations: 42.94 kB / 0.5446 GB, free: 8.785 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.1346, allocations: 143.3 kB / 0.5448 GB, free: 8.645 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1346, allocations: 4 kB / 0.5448 GB, free: 8.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03942/0.174, allocations: 8.81 MB / 0.5534 GB, free: 15.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.45, allocations: 7.938 kB / 0.5534 GB, free: 15.77 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.381357622332871] Failed to read output from testmodel.py, exit status != 0: 12.546102236956358 12.565836431 12.458215578 Calling exit ...