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.001376/0.001376, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00166/0.00166, allocations: 216.8 kB / 24.52 MB, free: 3.91 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.419/1.419, allocations: 207.7 MB / 235.4 MB, free: 9.77 MB / 190.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.2987/0.2987, allocations: 49.6 MB / 337.2 MB, free: 3.883 MB / 270.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.002222/0.002222, allocations: 79.88 kB / 477.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1287, allocations: 62.42 MB / 0.5269 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.004203/0.1329, allocations: 2.162 MB / 0.529 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.1342, allocations: 0.6242 MB / 0.5296 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.1345, allocations: 4 kB / 0.5296 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.1346, allocations: 31.59 kB / 0.5297 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003294/0.135, allocations: 91.33 kB / 0.5297 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.1352, allocations: 51.92 kB / 0.5298 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.1355, allocations: 278.8 kB / 0.5301 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.1357, allocations: 49.12 kB / 0.5301 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.1359, allocations: 119.4 kB / 0.5302 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.1361, allocations: 111.5 kB / 0.5303 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.1361, allocations: 16 kB / 0.5303 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.092e-05/0.1362, allocations: 24 kB / 0.5304 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.639e-05/0.1363, allocations: 55.7 kB / 0.5304 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.1364, allocations: 91.53 kB / 0.5305 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000329/0.1367, allocations: 226.9 kB / 0.5307 GB, free: 10.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1367, allocations: 0 / 0.5307 GB, free: 10.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1367, allocations: 0 / 0.5307 GB, free: 10.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1367, allocations: 0 / 0.5307 GB, free: 10.21 MB / 414.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.00095/0.1377, allocations: 0.4929 MB / 0.5312 GB, free: 9.688 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1377, allocations: 12.03 kB / 0.5312 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.542e-05/0.1377, allocations: 8.188 kB / 0.5312 GB, free: 9.668 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.923e-05/0.1378, allocations: 50.73 kB / 0.5313 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.1379, allocations: 32.75 kB / 0.5313 GB, free: 9.578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.1383, allocations: 205.1 kB / 0.5315 GB, free: 9.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.1383, allocations: 12.38 kB / 0.5315 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.1384, allocations: 16.38 kB / 0.5315 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.1387, allocations: 179 kB / 0.5317 GB, free: 9.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1387, allocations: 0 / 0.5317 GB, free: 9.141 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.1388, allocations: 11.94 kB / 0.5317 GB, free: 9.129 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1388, allocations: 4 kB / 0.5317 GB, free: 9.125 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.139, allocations: 115.9 kB / 0.5318 GB, free: 9.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009787/0.14, allocations: 0.5579 MB / 0.5324 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.1403, allocations: 138.5 kB / 0.5325 GB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.1405, allocations: 68.83 kB / 0.5326 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1405, allocations: 0 / 0.5326 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.1405, allocations: 34.56 kB / 0.5326 GB, free: 8.148 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.042e-06/0.1405, allocations: 0 / 0.5326 GB, free: 8.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001071/0.1416, allocations: 489.3 kB / 0.5331 GB, free: 7.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.1416, allocations: 59.31 kB / 0.5331 GB, free: 7.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.1419, allocations: 237 kB / 0.5333 GB, free: 7.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.1419, allocations: 29.7 kB / 0.5334 GB, free: 7.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.142, allocations: 152.5 kB / 0.5335 GB, free: 7.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.1421, allocations: 71.38 kB / 0.5336 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.1422, allocations: 37.7 kB / 0.5336 GB, free: 7.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1423, allocations: 342.8 kB / 0.5339 GB, free: 6.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.1425, allocations: 51.97 kB / 0.534 GB, free: 6.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.1426, allocations: 69.69 kB / 0.5341 GB, free: 6.547 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.1428, allocations: 133.8 kB / 0.5342 GB, free: 6.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1428, allocations: 0 / 0.5342 GB, free: 6.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003592/0.1432, allocations: 193.4 kB / 0.5344 GB, free: 6.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1432, allocations: 8 kB / 0.5344 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1432, allocations: 0 / 0.5344 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1432, allocations: 32 / 0.5344 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.1436, allocations: 71.89 kB / 0.5345 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.1449, allocations: 1.334 MB / 0.5358 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.145, allocations: 8.031 kB / 0.5358 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.145, allocations: 12.17 kB / 0.5358 GB, free: 4.668 MB / 414.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.0001247/0.1451, allocations: 133.8 kB / 0.5359 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.1452, allocations: 27.8 kB / 0.5359 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000361/0.1456, allocations: 187.6 kB / 0.5361 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1456, allocations: 3.938 kB / 0.5361 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.1456, allocations: 0 / 0.5361 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1456, allocations: 4 kB / 0.5361 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007238/0.1463, allocations: 489.4 kB / 0.5366 GB, free: 3.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1463, allocations: 4 kB / 0.5366 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.1465, allocations: 47.97 kB / 0.5366 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1465, allocations: 3.938 kB / 0.5366 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1465, allocations: 0 / 0.5366 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1465, allocations: 7.938 kB / 0.5366 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1465, allocations: 0 / 0.5366 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.1471, allocations: 355 kB / 0.537 GB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.61e-05/0.1471, allocations: 27.89 kB / 0.537 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.1472, allocations: 11.98 kB / 0.537 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1473, allocations: 4 kB / 0.537 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.1474, allocations: 15.97 kB / 0.537 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.1474, allocations: 4 kB / 0.537 GB, free: 3.285 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.1475, allocations: 168.5 kB / 0.5372 GB, free: 3.121 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1475, allocations: 0 / 0.5372 GB, free: 3.121 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.1478, allocations: 48 kB / 0.5372 GB, free: 3.074 MB / 414.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.0008179/0.1486, allocations: 0.8728 MB / 0.5381 GB, free: 2.176 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005037/0.1491, allocations: 167.8 kB / 0.5383 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1491, allocations: 0 / 0.5383 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.1493, allocations: 67.89 kB / 0.5383 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.1497, allocations: 40.48 kB / 0.5384 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2497/0.3993, allocations: 2.564 MB / 0.5409 GB, free: 21.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.3994, allocations: 144 kB / 0.541 GB, free: 21.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.3995, allocations: 22.45 kB / 0.541 GB, free: 21.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3997, allocations: 78.81 kB / 0.5411 GB, free: 21.61 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3997, allocations: 5.094 kB / 0.5411 GB, free: 21.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02907/0.4287, allocations: 5.379 MB / 0.5464 GB, free: 20.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.94, allocations: 14.97 kB / 0.5464 GB, free: 20.7 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.845226636040024] Failed to read output from testmodel.py, exit status != 0: 12.108323744963855 12.132270779 11.991015601 Calling exit ...