Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.001319/0.001319, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.001549/0.001549, allocations: 189.2 kB / 20.73 MB, free: 2.352 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.426/1.426, allocations: 207.6 MB / 231.1 MB, free: 4.109 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.4187/0.4187, allocations: 49.51 MB / 332.5 MB, free: 0.7109 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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.002196/0.002196, allocations: 80.38 kB / 470.8 MB, free: 41.11 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1159, allocations: 62.33 MB / 0.5206 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003418/0.1193, allocations: 2.664 MB / 0.5232 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1208, allocations: 0.7526 MB / 0.5239 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1209, allocations: 8 kB / 0.5239 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.1211, allocations: 47.45 kB / 0.524 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.1214, allocations: 131 kB / 0.5241 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000211/0.1216, allocations: 75.89 kB / 0.5242 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004572/0.1221, allocations: 406.1 kB / 0.5246 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1223, allocations: 65.52 kB / 0.5246 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.1225, allocations: 159.3 kB / 0.5248 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.1227, allocations: 167.1 kB / 0.5249 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.1228, allocations: 24 kB / 0.525 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.538e-05/0.1229, allocations: 28 kB / 0.525 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.482e-05/0.1229, allocations: 63.77 kB / 0.5251 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1231, allocations: 175 kB / 0.5252 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004419/0.1236, allocations: 318.5 kB / 0.5255 GB, free: 13.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1236, allocations: 4 kB / 0.5255 GB, free: 13.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1236, allocations: 0 / 0.5255 GB, free: 13.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1236, allocations: 4 kB / 0.5255 GB, free: 13.3 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.00122/0.1248, allocations: 0.6734 MB / 0.5262 GB, free: 12.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1248, allocations: 19.89 kB / 0.5262 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.1e-05/0.1249, allocations: 54.73 kB / 0.5263 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.125, allocations: 40.7 kB / 0.5263 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/0.1255, allocations: 324.2 kB / 0.5266 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1255, allocations: 16.81 kB / 0.5266 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.1256, allocations: 28.33 kB / 0.5267 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.126, allocations: 250.8 kB / 0.5269 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.1261, allocations: 0 / 0.5269 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.1261, allocations: 15.98 kB / 0.5269 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1261, allocations: 4 kB / 0.5269 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000409/0.1265, allocations: 177.5 kB / 0.5271 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.1278, allocations: 0.8597 MB / 0.5279 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.1281, allocations: 174.7 kB / 0.5281 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.1283, allocations: 97.69 kB / 0.5282 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.1284, allocations: 7.938 kB / 0.5282 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1284, allocations: 34.56 kB / 0.5282 GB, free: 10.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.412e-06/0.1284, allocations: 0 / 0.5282 GB, free: 10.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001536/0.1299, allocations: 0.7476 MB / 0.529 GB, free: 9.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.13, allocations: 59.39 kB / 0.529 GB, free: 9.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.1303, allocations: 296.5 kB / 0.5293 GB, free: 9.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/0.1304, allocations: 29.7 kB / 0.5293 GB, free: 9.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1305, allocations: 184.7 kB / 0.5295 GB, free: 8.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.1306, allocations: 111.1 kB / 0.5296 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/0.1307, allocations: 53.7 kB / 0.5297 GB, free: 8.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1309, allocations: 342.8 kB / 0.53 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.131, allocations: 71.95 kB / 0.53 GB, free: 8.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.1312, allocations: 110.8 kB / 0.5302 GB, free: 8.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.1316, allocations: 188.2 kB / 0.5303 GB, free: 8.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1316, allocations: 0 / 0.5303 GB, free: 8.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007251/0.1323, allocations: 331 kB / 0.5306 GB, free: 7.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1324, allocations: 4 kB / 0.5307 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1324, allocations: 0 / 0.5307 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.1327, allocations: 52.81 kB / 0.5307 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.1331, allocations: 79.95 kB / 0.5308 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002848/0.1359, allocations: 3.032 MB / 0.5337 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.1361, allocations: 19.95 kB / 0.5338 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1362, allocations: 8 kB / 0.5338 GB, free: 4.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (30): * Single equations (assignments): 28 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001864/0.1363, allocations: 141.8 kB / 0.5339 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.1364, allocations: 31.88 kB / 0.5339 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005093/0.1369, allocations: 261.3 kB / 0.5342 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1369, allocations: 4 kB / 0.5342 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.1369, allocations: 3.938 kB / 0.5342 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1369, allocations: 3.938 kB / 0.5342 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.138, allocations: 0.6588 MB / 0.5348 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.138, allocations: 8 kB / 0.5348 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.1383, allocations: 63.91 kB / 0.5349 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1383, allocations: 0 / 0.5349 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.1383, allocations: 12.12 kB / 0.5349 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1383, allocations: 4 kB / 0.5349 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1383, allocations: 3.938 kB / 0.5349 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006953/0.139, allocations: 460.5 kB / 0.5354 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.1392, allocations: 121 kB / 0.5355 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.1392, allocations: 7.938 kB / 0.5355 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.1394, allocations: 11.98 kB / 0.5355 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.1394, allocations: 15.98 kB / 0.5355 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.1394, allocations: 8 kB / 0.5355 GB, free: 2.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.1397, allocations: 215.1 kB / 0.5357 GB, free: 2.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1397, allocations: 4 kB / 0.5357 GB, free: 2.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.1401, allocations: 72 kB / 0.5358 GB, free: 2.078 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * 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 (28): * Single equations (assignments): 28 * 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.001044/0.1411, allocations: 0.9855 MB / 0.5368 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009072/0.142, allocations: 358.4 kB / 0.5371 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.142, allocations: 128 / 0.5371 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.1422, allocations: 103.8 kB / 0.5372 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.1427, allocations: 58.59 kB / 0.5373 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005109/0.1478, allocations: 3.367 MB / 0.5405 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.1482, allocations: 0.7837 MB / 0.5413 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.1484, allocations: 38.94 kB / 0.5413 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.1486, allocations: 115.4 kB / 0.5415 GB, free: 12.12 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1486, allocations: 0 / 0.5415 GB, free: 12.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.1835, allocations: 7.055 MB / 0.5483 GB, free: 5.004 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.49, allocations: 4.062 kB / 0.5484 GB, free: 5 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.405119847971946] Failed to read output from testmodel.py, exit status != 0: 10.578226504381746 10.605058289 10.477270513 Calling exit ...