Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.001367/0.001367, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001527/0.001527, allocations: 215 kB / 21.45 MB, free: 1.617 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.516/1.516, allocations: 207.6 MB / 231.8 MB, free: 4.055 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.4118/0.4118, allocations: 49.51 MB / 333.2 MB, free: 0.7305 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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.002238/0.002238, allocations: 68.5 kB / 471.5 MB, free: 41.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1195, allocations: 62.33 MB / 0.5213 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003697/0.1232, allocations: 2.303 MB / 0.5236 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.125, allocations: 0.6553 MB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000256/0.1252, allocations: 7.938 kB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.1255, allocations: 35.66 kB / 0.5243 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004306/0.1259, allocations: 91.25 kB / 0.5243 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.1262, allocations: 51.94 kB / 0.5244 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.1266, allocations: 282.7 kB / 0.5247 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1268, allocations: 52.66 kB / 0.5247 GB, free: 14.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.1271, allocations: 115.5 kB / 0.5248 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.1273, allocations: 115.3 kB / 0.5249 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.1274, allocations: 16 kB / 0.5249 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.156e-05/0.1275, allocations: 24 kB / 0.525 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.252e-05/0.1275, allocations: 43.84 kB / 0.525 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.1276, allocations: 123.3 kB / 0.5251 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000399/0.128, allocations: 222.9 kB / 0.5253 GB, free: 14.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.128, allocations: 4 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.128, allocations: 0 / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.1281, allocations: 0 / 0.5253 GB, free: 14.19 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001092/0.1291, allocations: 0.5566 MB / 0.5259 GB, free: 13.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.1292, allocations: 11.89 kB / 0.5259 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.984e-05/0.1292, allocations: 8.188 kB / 0.5259 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.1293, allocations: 46.73 kB / 0.526 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.1294, allocations: 32.75 kB / 0.526 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.1299, allocations: 270.9 kB / 0.5262 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1299, allocations: 16.38 kB / 0.5263 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.015e-05/0.13, allocations: 20.38 kB / 0.5263 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.1303, allocations: 174.9 kB / 0.5264 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1303, allocations: 0 / 0.5264 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.1304, allocations: 4 kB / 0.5264 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1304, allocations: 4 kB / 0.5265 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.1307, allocations: 115.9 kB / 0.5266 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.1318, allocations: 0.6657 MB / 0.5272 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.1321, allocations: 130.5 kB / 0.5273 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.1322, allocations: 68.83 kB / 0.5274 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.1323, allocations: 0 / 0.5274 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.1323, allocations: 34.56 kB / 0.5274 GB, free: 11.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.1323, allocations: 0 / 0.5274 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001293/0.1336, allocations: 0.5566 MB / 0.528 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1336, allocations: 51.41 kB / 0.528 GB, free: 11.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.1339, allocations: 229 kB / 0.5282 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1339, allocations: 29.7 kB / 0.5283 GB, free: 10.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1341, allocations: 148.4 kB / 0.5284 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.1341, allocations: 67.39 kB / 0.5285 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.099e-05/0.1342, allocations: 49.64 kB / 0.5285 GB, free: 10.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1344, allocations: 338.8 kB / 0.5288 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.1345, allocations: 51.97 kB / 0.5289 GB, free: 10.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.1347, allocations: 65.69 kB / 0.529 GB, free: 10.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.1349, allocations: 145.6 kB / 0.5291 GB, free: 10.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1349, allocations: 8 kB / 0.5291 GB, free: 10.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004189/0.1354, allocations: 193.4 kB / 0.5293 GB, free: 9.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.1354, allocations: 5.25 kB / 0.5293 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1354, allocations: 0 / 0.5293 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.1354, allocations: 7.984 kB / 0.5293 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.1358, allocations: 59.95 kB / 0.5294 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.1373, allocations: 1.445 MB / 0.5308 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.1375, allocations: 8.094 kB / 0.5308 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.1375, allocations: 8 kB / 0.5308 GB, free: 8.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001597/0.1377, allocations: 125.8 kB / 0.5309 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.479e-05/0.1377, allocations: 35.73 kB / 0.5309 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004154/0.1381, allocations: 185.3 kB / 0.5311 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.1382, allocations: 0 / 0.5311 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.1382, allocations: 4 kB / 0.5311 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1382, allocations: 0 / 0.5311 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008726/0.139, allocations: 0.5334 MB / 0.5316 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.139, allocations: 0 / 0.5316 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.1393, allocations: 43.97 kB / 0.5317 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1393, allocations: 0 / 0.5317 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.1393, allocations: 4 kB / 0.5317 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-05/0.1393, allocations: 4 kB / 0.5317 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1393, allocations: 4 kB / 0.5317 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1399, allocations: 355.3 kB / 0.532 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.14, allocations: 109 kB / 0.5321 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.1401, allocations: 4 kB / 0.5321 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.1402, allocations: 8 kB / 0.5322 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.1403, allocations: 11.98 kB / 0.5322 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.1403, allocations: 4 kB / 0.5322 GB, free: 6.645 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.1405, allocations: 172.5 kB / 0.5323 GB, free: 6.477 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1405, allocations: 0 / 0.5323 GB, free: 6.477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.1408, allocations: 44 kB / 0.5324 GB, free: 6.434 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0009608/0.1418, allocations: 0.8762 MB / 0.5332 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007107/0.1425, allocations: 167.8 kB / 0.5334 GB, free: 5.367 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1425, allocations: 0 / 0.5334 GB, free: 5.367 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.1427, allocations: 71.97 kB / 0.5335 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.1432, allocations: 41.22 kB / 0.5335 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/0.1475, allocations: 2.574 MB / 0.536 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.1479, allocations: 0.752 MB / 0.5367 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.1481, allocations: 25.53 kB / 0.5368 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.1482, allocations: 79.41 kB / 0.5368 GB, free: 1.715 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1482, allocations: 0 / 0.5368 GB, free: 1.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02827/0.1765, allocations: 5.027 MB / 0.5418 GB, free: 12.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.74/8.916, allocations: 12.05 kB / 0.5418 GB, free: 12.62 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.024819696031045] Failed to read output from testmodel.py, exit status != 0: 9.048223105026409 9.072521956 8.940316396 Calling exit ...