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.001325/0.001325, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.001616/0.001616, allocations: 215.1 kB / 21.45 MB, free: 1.641 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.497/1.497, allocations: 207.6 MB / 231.8 MB, free: 4.074 MB / 174.1 MB " [Timeout remaining time 178] 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.4249/0.4249, allocations: 49.51 MB / 333.2 MB, free: 0.75 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="cs",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.002142/0.002142, allocations: 68.16 kB / 471.5 MB, free: 41.11 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1113, allocations: 62.34 MB / 0.5213 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003551/0.1148, allocations: 2.977 MB / 0.5242 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.1166, allocations: 0.8267 MB / 0.525 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1168, allocations: 7.938 kB / 0.5251 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002107/0.117, allocations: 59.31 kB / 0.5251 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.1174, allocations: 138.9 kB / 0.5252 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.1177, allocations: 111.8 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005989/0.1183, allocations: 498.3 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.1186, allocations: 100.1 kB / 0.5259 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.1189, allocations: 203.1 kB / 0.5261 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003093/0.1192, allocations: 210.9 kB / 0.5263 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.132e-05/0.1192, allocations: 32 kB / 0.5263 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1193, allocations: 36 kB / 0.5264 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.562e-05/0.1194, allocations: 79.69 kB / 0.5265 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002287/0.1197, allocations: 214.7 kB / 0.5267 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005718/0.1202, allocations: 421.9 kB / 0.5271 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1202, allocations: 0 / 0.5271 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1202, allocations: 0 / 0.5271 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.1203, allocations: 4 kB / 0.5271 GB, free: 12.42 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.00143/0.1217, allocations: 0.763 MB / 0.5278 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.1217, allocations: 12.03 kB / 0.5278 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.758e-05/0.1218, allocations: 4.844 kB / 0.5278 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.1218, allocations: 70.61 kB / 0.5279 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.122, allocations: 56.61 kB / 0.5279 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006092/0.1226, allocations: 358.5 kB / 0.5283 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1226, allocations: 25.03 kB / 0.5283 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.463e-05/0.1227, allocations: 43.89 kB / 0.5284 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.1232, allocations: 297.7 kB / 0.5286 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1233, allocations: 0 / 0.5286 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.1233, allocations: 12 kB / 0.5286 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.1233, allocations: 8 kB / 0.5287 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004377/0.1237, allocations: 210.1 kB / 0.5289 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.1256, allocations: 1.105 MB / 0.5299 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.126, allocations: 231 kB / 0.5302 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.1263, allocations: 112.8 kB / 0.5303 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.1263, allocations: 11.98 kB / 0.5303 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.1263, allocations: 31.09 kB / 0.5303 GB, free: 8.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.1263, allocations: 0 / 0.5303 GB, free: 8.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002013/0.1283, allocations: 0.9414 MB / 0.5312 GB, free: 7.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1284, allocations: 51.41 kB / 0.5313 GB, free: 7.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.1288, allocations: 361.6 kB / 0.5316 GB, free: 7.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.1288, allocations: 29.7 kB / 0.5316 GB, free: 7.414 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.129, allocations: 208.6 kB / 0.5318 GB, free: 7.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.1291, allocations: 134.9 kB / 0.532 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.1292, allocations: 62.08 kB / 0.532 GB, free: 7.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.1294, allocations: 358.7 kB / 0.5324 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.1296, allocations: 84.72 kB / 0.5325 GB, free: 6.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.1298, allocations: 137.7 kB / 0.5326 GB, free: 6.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/0.1302, allocations: 243.7 kB / 0.5328 GB, free: 6.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1302, allocations: 0 / 0.5328 GB, free: 6.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001016/0.1312, allocations: 421.6 kB / 0.5332 GB, free: 5.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1313, allocations: 4 kB / 0.5332 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.1313, allocations: 8 kB / 0.5332 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006545/0.1319, allocations: 120.8 kB / 0.5333 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.1324, allocations: 91.88 kB / 0.5334 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003799/0.1362, allocations: 3.329 MB / 0.5367 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.1365, allocations: 19.94 kB / 0.5367 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1365, allocations: 8 kB / 0.5367 GB, free: 1.875 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.0002092/0.1367, allocations: 153.8 kB / 0.5369 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.478e-05/0.1368, allocations: 39.77 kB / 0.5369 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.1373, allocations: 309.8 kB / 0.5372 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1374, allocations: 7.938 kB / 0.5372 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.1374, allocations: 0 / 0.5372 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1374, allocations: 3.984 kB / 0.5372 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.1385, allocations: 0.7486 MB / 0.5379 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.1385, allocations: 0 / 0.5379 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.1389, allocations: 79.95 kB / 0.538 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1389, allocations: 0 / 0.538 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.1389, allocations: 19.94 kB / 0.538 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1389, allocations: 0 / 0.538 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1389, allocations: 288 / 0.538 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007694/0.1397, allocations: 0.4964 MB / 0.5385 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.1399, allocations: 140.8 kB / 0.5387 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.1399, allocations: 11.94 kB / 0.5387 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.1401, allocations: 8 kB / 0.5387 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.1402, allocations: 19.97 kB / 0.5387 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1402, allocations: 8 kB / 0.5387 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003108/0.1405, allocations: 255.2 kB / 0.5389 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1405, allocations: 0 / 0.5389 GB, free: 15.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000431/0.141, allocations: 92 kB / 0.539 GB, free: 15.4 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.001221/0.1422, allocations: 1.036 MB / 0.54 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.1433, allocations: 432.3 kB / 0.5405 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1433, allocations: 0 / 0.5405 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.1435, allocations: 115.8 kB / 0.5406 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005687/0.1441, allocations: 69.52 kB / 0.5406 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006417/0.1505, allocations: 3.981 MB / 0.5445 GB, free: 9.625 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/0.151, allocations: 0.8198 MB / 0.5453 GB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.1512, allocations: 46.94 kB / 0.5454 GB, free: 8.738 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.1514, allocations: 139.4 kB / 0.5455 GB, free: 8.602 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1514, allocations: 0 / 0.5455 GB, free: 8.602 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.1852, allocations: 8.86 MB / 0.5541 GB, free: 15.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.69, allocations: 4 kB / 0.5542 GB, free: 15.68 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.81006188399624] Failed to read output from testmodel.py, exit status != 0: 12.845013574988116 12.860994173 12.737633427 Calling exit ...