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.001323/0.001323, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001568/0.001568, allocations: 216.4 kB / 23.75 MB, free: 4.668 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.404/1.404, allocations: 207.6 MB / 234.5 MB, free: 9.992 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.2874/0.2874, allocations: 49.57 MB / 336.3 MB, free: 4.191 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.002421/0.002421, allocations: 72.52 kB / 476.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1191, allocations: 62.43 MB / 0.5261 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.004045/0.1232, allocations: 2.192 MB / 0.5283 GB, free: 12.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.1246, allocations: 0.6398 MB / 0.5289 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.1248, allocations: 3.938 kB / 0.5289 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000164/0.1249, allocations: 31.66 kB / 0.5289 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003438/0.1253, allocations: 79.41 kB / 0.529 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1255, allocations: 55.81 kB / 0.529 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003901/0.1259, allocations: 239 kB / 0.5293 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.1261, allocations: 52.7 kB / 0.5293 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.1263, allocations: 103.6 kB / 0.5294 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.1265, allocations: 99.47 kB / 0.5295 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.1265, allocations: 16 kB / 0.5295 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.405e-05/0.1266, allocations: 16 kB / 0.5295 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.1267, allocations: 47.78 kB / 0.5296 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1268, allocations: 103.4 kB / 0.5297 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.1271, allocations: 199 kB / 0.5299 GB, free: 10.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1271, allocations: 0 / 0.5299 GB, free: 10.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1271, allocations: 4 kB / 0.5299 GB, free: 10.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1271, allocations: 4 kB / 0.5299 GB, free: 10.44 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.0009325/0.1281, allocations: 469 kB / 0.5303 GB, free: 9.953 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1281, allocations: 12.03 kB / 0.5304 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.552e-05/0.1282, allocations: 50.73 kB / 0.5304 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1283, allocations: 28.8 kB / 0.5304 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.1287, allocations: 197.1 kB / 0.5306 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.1287, allocations: 12.38 kB / 0.5306 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.1288, allocations: 20.36 kB / 0.5306 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.1291, allocations: 151.5 kB / 0.5308 GB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1291, allocations: 3.953 kB / 0.5308 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.1291, allocations: 8 kB / 0.5308 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1291, allocations: 7.984 kB / 0.5308 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.1294, allocations: 95.88 kB / 0.5309 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009565/0.1303, allocations: 0.5348 MB / 0.5314 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.1306, allocations: 130.5 kB / 0.5315 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1307, allocations: 64.88 kB / 0.5316 GB, free: 8.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1307, allocations: 7.984 kB / 0.5316 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.1308, allocations: 34.5 kB / 0.5316 GB, free: 8.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.1308, allocations: 0 / 0.5316 GB, free: 8.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.00113/0.1319, allocations: 498 kB / 0.5321 GB, free: 7.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.132, allocations: 51.41 kB / 0.5322 GB, free: 7.918 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.1322, allocations: 236.8 kB / 0.5324 GB, free: 7.676 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1322, allocations: 29.7 kB / 0.5324 GB, free: 7.641 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.1323, allocations: 132.5 kB / 0.5326 GB, free: 7.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.954e-05/0.1324, allocations: 75.41 kB / 0.5326 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.796e-05/0.1325, allocations: 41.7 kB / 0.5327 GB, free: 7.387 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1326, allocations: 330.8 kB / 0.533 GB, free: 7.055 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.1327, allocations: 51.91 kB / 0.533 GB, free: 7.004 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.1329, allocations: 78.53 kB / 0.5331 GB, free: 6.918 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.00117/0.134, allocations: 347.9 kB / 0.5334 GB, free: 6.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.134, allocations: 0 / 0.5334 GB, free: 6.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003893/0.1344, allocations: 193.8 kB / 0.5336 GB, free: 6.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1344, allocations: 8.156 kB / 0.5336 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.1344, allocations: 0 / 0.5336 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1345, allocations: 4.031 kB / 0.5336 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.1347, allocations: 55.97 kB / 0.5337 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1347, allocations: 0 / 0.5337 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.1349, allocations: 11.98 kB / 0.5337 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1349, allocations: 4 kB / 0.5337 GB, free: 6.293 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.0001594/0.135, allocations: 137.7 kB / 0.5338 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.1351, allocations: 23.8 kB / 0.5339 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.284e-05/0.1352, allocations: 34.11 kB / 0.5339 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1352, allocations: 4 kB / 0.5339 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1352, allocations: 0 / 0.5339 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1352, allocations: 0 / 0.5339 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008187/0.136, allocations: 497.3 kB / 0.5344 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.136, allocations: 4 kB / 0.5344 GB, free: 5.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.1363, allocations: 47.97 kB / 0.5344 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/0.1363, allocations: 11.94 kB / 0.5344 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.1363, allocations: 0 / 0.5344 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1363, allocations: 4 kB / 0.5344 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1363, allocations: 0 / 0.5344 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005271/0.1368, allocations: 339.1 kB / 0.5348 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.651e-05/0.1369, allocations: 31.89 kB / 0.5348 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.137, allocations: 7.938 kB / 0.5348 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1371, allocations: 11.98 kB / 0.5348 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.1372, allocations: 7.984 kB / 0.5348 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.1372, allocations: 11.94 kB / 0.5348 GB, free: 5.062 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001693/0.1373, allocations: 164.5 kB / 0.535 GB, free: 4.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1373, allocations: 0 / 0.535 GB, free: 4.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000292/0.1376, allocations: 40 kB / 0.535 GB, free: 4.863 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.000868/0.1385, allocations: 0.8685 MB / 0.5359 GB, free: 3.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003695/0.1389, allocations: 128.5 kB / 0.536 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1389, allocations: 0 / 0.536 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.139, allocations: 75.88 kB / 0.5361 GB, free: 3.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.1394, allocations: 44.33 kB / 0.5361 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003499/0.1429, allocations: 2.441 MB / 0.5385 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.1433, allocations: 0.7435 MB / 0.5392 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1434, allocations: 25.62 kB / 0.5392 GB, free: 404 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.1435, allocations: 59.42 kB / 0.5393 GB, free: 344 kB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1435, allocations: 0 / 0.5393 GB, free: 344 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2365/0.38, allocations: 4.564 MB / 0.5438 GB, free: 22.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.61, allocations: 5.25 kB / 0.5438 GB, free: 22.37 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.345443079946563] Failed to read output from testmodel.py, exit status != 0: 11.723109422950074 11.746194827 11.614651409 Calling exit ...