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.001639/0.001639, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002025/0.002025, allocations: 216.6 kB / 23.73 MB, free: 4.156 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.38/1.38, allocations: 207.7 MB / 234.6 MB, free: 9.805 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.3115/0.3115, allocations: 49.6 MB / 336.4 MB, free: 3.887 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",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.002195/0.002195, allocations: 71.91 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.127, allocations: 62.41 MB / 0.5261 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003664/0.1306, allocations: 2.172 MB / 0.5283 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1318, allocations: 0.6203 MB / 0.5289 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1319, allocations: 4 kB / 0.5289 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.1321, allocations: 43.59 kB / 0.5289 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.1323, allocations: 79.33 kB / 0.529 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.1325, allocations: 55.88 kB / 0.529 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.1328, allocations: 270.8 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.133, allocations: 53.11 kB / 0.5293 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.1331, allocations: 115.4 kB / 0.5295 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.1333, allocations: 103.5 kB / 0.5296 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.1333, allocations: 16 kB / 0.5296 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.275e-05/0.1334, allocations: 20 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.21e-05/0.1335, allocations: 59.69 kB / 0.5296 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.877e-05/0.1336, allocations: 91.53 kB / 0.5297 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1339, allocations: 223 kB / 0.5299 GB, free: 10.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1339, allocations: 0 / 0.5299 GB, free: 10.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1339, allocations: 3.938 kB / 0.5299 GB, free: 10.22 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1339, allocations: 0 / 0.5299 GB, free: 10.22 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.0009034/0.1348, allocations: 0.4969 MB / 0.5304 GB, free: 9.695 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1348, allocations: 8.031 kB / 0.5304 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.1349, allocations: 46.73 kB / 0.5305 GB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.135, allocations: 36.75 kB / 0.5305 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1354, allocations: 205.1 kB / 0.5307 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1354, allocations: 8.375 kB / 0.5307 GB, free: 9.367 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.1354, allocations: 24.38 kB / 0.5307 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003382/0.1358, allocations: 175.2 kB / 0.5309 GB, free: 9.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.1358, allocations: 0 / 0.5309 GB, free: 9.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1358, allocations: 8 kB / 0.5309 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1358, allocations: 4 kB / 0.5309 GB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/0.1361, allocations: 119.8 kB / 0.531 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009832/0.1371, allocations: 0.5618 MB / 0.5316 GB, free: 8.422 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.1373, allocations: 126.5 kB / 0.5317 GB, free: 8.289 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.1375, allocations: 68.83 kB / 0.5318 GB, free: 8.219 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.1375, allocations: 0 / 0.5318 GB, free: 8.219 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.1376, allocations: 42.55 kB / 0.5318 GB, free: 8.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 9.01e-07/0.1376, allocations: 0 / 0.5318 GB, free: 8.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001126/0.1387, allocations: 492.8 kB / 0.5323 GB, free: 7.652 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.1387, allocations: 59.25 kB / 0.5323 GB, free: 7.582 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.139, allocations: 233 kB / 0.5326 GB, free: 7.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.139, allocations: 33.7 kB / 0.5326 GB, free: 7.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1391, allocations: 140.6 kB / 0.5327 GB, free: 7.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.645e-05/0.1392, allocations: 79.36 kB / 0.5328 GB, free: 7.078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.464e-05/0.1393, allocations: 37.72 kB / 0.5328 GB, free: 7.035 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1395, allocations: 334.8 kB / 0.5332 GB, free: 6.699 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.1396, allocations: 51.97 kB / 0.5332 GB, free: 6.648 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.1397, allocations: 81.67 kB / 0.5333 GB, free: 6.562 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.14, allocations: 129.8 kB / 0.5334 GB, free: 6.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.14, allocations: 0 / 0.5334 GB, free: 6.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003511/0.1403, allocations: 193.4 kB / 0.5336 GB, free: 6.234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1404, allocations: 8 kB / 0.5336 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1404, allocations: 32 / 0.5336 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1404, allocations: 4 kB / 0.5336 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.1408, allocations: 67.89 kB / 0.5337 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1421, allocations: 1.334 MB / 0.535 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.1423, allocations: 8.188 kB / 0.535 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.1423, allocations: 8 kB / 0.535 GB, free: 4.691 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.0001327/0.1424, allocations: 129.8 kB / 0.5351 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.1424, allocations: 27.81 kB / 0.5351 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000346/0.1428, allocations: 187.6 kB / 0.5353 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1428, allocations: 4 kB / 0.5353 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1428, allocations: 3.984 kB / 0.5353 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1428, allocations: 3.938 kB / 0.5353 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007841/0.1436, allocations: 493.4 kB / 0.5358 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1436, allocations: 0 / 0.5358 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.1438, allocations: 43.92 kB / 0.5358 GB, free: 3.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.1438, allocations: 11.92 kB / 0.5359 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1438, allocations: 4 kB / 0.5359 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1438, allocations: 0 / 0.5359 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1438, allocations: 4 kB / 0.5359 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.1444, allocations: 347 kB / 0.5362 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.936e-05/0.1444, allocations: 35.89 kB / 0.5362 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.1445, allocations: 0 / 0.5362 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.1446, allocations: 11.98 kB / 0.5362 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.1447, allocations: 7.984 kB / 0.5362 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1447, allocations: 8 kB / 0.5363 GB, free: 3.312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.1448, allocations: 168.5 kB / 0.5364 GB, free: 3.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1448, allocations: 0 / 0.5364 GB, free: 3.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002767/0.1451, allocations: 44 kB / 0.5365 GB, free: 3.105 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.0008134/0.1459, allocations: 0.8767 MB / 0.5373 GB, free: 2.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005017/0.1464, allocations: 168 kB / 0.5375 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1464, allocations: 4 kB / 0.5375 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.1466, allocations: 71.91 kB / 0.5375 GB, free: 1.965 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.1469, allocations: 44.34 kB / 0.5376 GB, free: 1.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2127/0.3596, allocations: 2.558 MB / 0.5401 GB, free: 21.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.3597, allocations: 146.6 kB / 0.5402 GB, free: 21.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.3599, allocations: 21.3 kB / 0.5402 GB, free: 21.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.36, allocations: 77.31 kB / 0.5403 GB, free: 21.56 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.36, allocations: 0 / 0.5403 GB, free: 21.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03481/0.3948, allocations: 5.696 MB / 0.5459 GB, free: 20.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.33, allocations: 6.203 kB / 0.5459 GB, free: 20.28 MB / 414.1 MB " [Timeout remaining time 649] (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.153119207825512] Failed to read output from testmodel.py, exit status != 0: 11.437529136892408 11.460491371 11.321922282 Calling exit ...