Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.001332/0.001332, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001445/0.001445, allocations: 208.7 kB / 23.73 MB, free: 4.387 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.392/1.392, allocations: 207.7 MB / 234.6 MB, free: 9.793 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.2879/0.2879, allocations: 49.61 MB / 336.4 MB, free: 3.867 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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.002498/0.002498, allocations: 76.3 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1245, allocations: 62.44 MB / 0.5261 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.004192/0.1287, allocations: 2.064 MB / 0.5282 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1301, allocations: 0.5969 MB / 0.5287 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.1303, allocations: 7.938 kB / 0.5288 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1305, allocations: 35.66 kB / 0.5288 GB, free: 11.4 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.1309, allocations: 75.41 kB / 0.5289 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.1311, allocations: 47.94 kB / 0.5289 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.1315, allocations: 246.8 kB / 0.5291 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1317, allocations: 52.75 kB / 0.5292 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.1319, allocations: 99.52 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1321, allocations: 91.53 kB / 0.5294 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.1321, allocations: 16 kB / 0.5294 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.762e-05/0.1322, allocations: 20 kB / 0.5294 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.317e-05/0.1322, allocations: 47.72 kB / 0.5295 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.1324, allocations: 75.59 kB / 0.5295 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.1327, allocations: 207 kB / 0.5297 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1327, allocations: 0 / 0.5297 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1327, allocations: 4 kB / 0.5297 GB, free: 10.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1327, allocations: 0 / 0.5297 GB, free: 10.43 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001005/0.1337, allocations: 469 kB / 0.5302 GB, free: 9.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1338, allocations: 8.031 kB / 0.5302 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.1338, allocations: 50.67 kB / 0.5302 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1339, allocations: 28.8 kB / 0.5303 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.1344, allocations: 209.1 kB / 0.5305 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.1344, allocations: 12.38 kB / 0.5305 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.1344, allocations: 12.38 kB / 0.5305 GB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003329/0.1348, allocations: 155.4 kB / 0.5306 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.1348, allocations: 3.953 kB / 0.5306 GB, free: 9.434 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.1348, allocations: 8 kB / 0.5306 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1348, allocations: 4 kB / 0.5306 GB, free: 9.422 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/0.1351, allocations: 103.9 kB / 0.5307 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009777/0.136, allocations: 0.5075 MB / 0.5312 GB, free: 8.766 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.1363, allocations: 118.5 kB / 0.5314 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.1365, allocations: 68.77 kB / 0.5314 GB, free: 8.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.1365, allocations: 0 / 0.5314 GB, free: 8.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.1365, allocations: 46.5 kB / 0.5315 GB, free: 8.516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 2.765e-06/0.1365, allocations: 8 kB / 0.5315 GB, free: 8.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001139/0.1377, allocations: 485.2 kB / 0.5319 GB, free: 8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.1377, allocations: 59.39 kB / 0.532 GB, free: 7.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.138, allocations: 224.9 kB / 0.5322 GB, free: 7.699 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.138, allocations: 29.7 kB / 0.5322 GB, free: 7.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1381, allocations: 140.5 kB / 0.5324 GB, free: 7.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.1382, allocations: 67.41 kB / 0.5324 GB, free: 7.457 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.107e-05/0.1382, allocations: 41.72 kB / 0.5325 GB, free: 7.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1384, allocations: 334.8 kB / 0.5328 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.1385, allocations: 51.91 kB / 0.5328 GB, free: 7.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.1387, allocations: 78.55 kB / 0.5329 GB, free: 6.938 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.1399, allocations: 339.9 kB / 0.5332 GB, free: 6.598 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.1399, allocations: 3.938 kB / 0.5332 GB, free: 6.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003715/0.1402, allocations: 193.9 kB / 0.5334 GB, free: 6.398 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.1403, allocations: 8.156 kB / 0.5334 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1403, allocations: 3.938 kB / 0.5334 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.1403, allocations: 0 / 0.5334 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.1405, allocations: 63.95 kB / 0.5335 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1406, allocations: 0 / 0.5335 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.1407, allocations: 8.047 kB / 0.5335 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.1407, allocations: 7.984 kB / 0.5335 GB, free: 6.309 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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 prepare postOptimizeDAE: time 0.0001768/0.1409, allocations: 145.7 kB / 0.5337 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.1409, allocations: 23.8 kB / 0.5337 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.141, allocations: 26.11 kB / 0.5337 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.141, allocations: 4 kB / 0.5337 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.141, allocations: 0 / 0.5337 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.141, allocations: 0 / 0.5337 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007692/0.1418, allocations: 489.3 kB / 0.5342 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1418, allocations: 0 / 0.5342 GB, free: 5.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.142, allocations: 47.97 kB / 0.5342 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.142, allocations: 4 kB / 0.5342 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.1421, allocations: 7.938 kB / 0.5342 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1421, allocations: 0 / 0.5342 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1421, allocations: 0 / 0.5342 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.1426, allocations: 335.2 kB / 0.5345 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.114e-05/0.1427, allocations: 27.84 kB / 0.5346 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.1427, allocations: 4 kB / 0.5346 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.1429, allocations: 8 kB / 0.5346 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.1429, allocations: 19.91 kB / 0.5346 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1429, allocations: 7.938 kB / 0.5346 GB, free: 5.102 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.1431, allocations: 164.5 kB / 0.5348 GB, free: 4.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1431, allocations: 0 / 0.5348 GB, free: 4.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1434, allocations: 40 kB / 0.5348 GB, free: 4.902 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (18): * Single equations (assignments): 18 * 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.0008514/0.1442, allocations: 0.8567 MB / 0.5356 GB, free: 4.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.1446, allocations: 132.6 kB / 0.5358 GB, free: 3.891 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1446, allocations: 0 / 0.5358 GB, free: 3.891 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.1447, allocations: 67.81 kB / 0.5358 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.1451, allocations: 44.66 kB / 0.5359 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.1486, allocations: 2.445 MB / 0.5383 GB, free: 1.242 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.1487, allocations: 137.7 kB / 0.5384 GB, free: 1.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.1488, allocations: 29.55 kB / 0.5384 GB, free: 1.059 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1489, allocations: 63.42 kB / 0.5385 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1489, allocations: 0 / 0.5385 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2484/0.3973, allocations: 5 MB / 0.5434 GB, free: 22.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.4, allocations: 4.094 kB / 0.5434 GB, free: 22.61 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --stepSize=0.005 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.094299077987671] Failed to read output from testmodel.py, exit status != 0: 11.50789903011173 11.529610687 11.392720145 Calling exit ...