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.001272/0.001272, 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.001428/0.001428, allocations: 214 kB / 24.52 MB, free: 3.914 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.441/1.441, allocations: 207.7 MB / 235.4 MB, free: 9.773 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.2978/0.2978, allocations: 49.6 MB / 337.2 MB, free: 3.879 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.002143/0.002143, allocations: 75.89 kB / 477.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1148, allocations: 62.41 MB / 0.5269 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003447/0.1183, allocations: 2.069 MB / 0.5289 GB, free: 12.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1194, allocations: 0.6047 MB / 0.5295 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1195, allocations: 4 kB / 0.5295 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.1196, allocations: 31.66 kB / 0.5295 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.1199, allocations: 79.41 kB / 0.5296 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001544/0.12, allocations: 51.88 kB / 0.5297 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.1204, allocations: 242.9 kB / 0.5299 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.1205, allocations: 48.77 kB / 0.5299 GB, free: 11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.1207, allocations: 99.58 kB / 0.53 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.1208, allocations: 107.5 kB / 0.5301 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.1209, allocations: 16 kB / 0.5302 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.1209, allocations: 16 kB / 0.5302 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.86e-05/0.121, allocations: 47.78 kB / 0.5302 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.926e-05/0.1211, allocations: 79.59 kB / 0.5303 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.1214, allocations: 207 kB / 0.5305 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1214, allocations: 0 / 0.5305 GB, free: 10.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1214, allocations: 0 / 0.5305 GB, free: 10.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1214, allocations: 0 / 0.5305 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.0008657/0.1222, allocations: 473 kB / 0.5309 GB, free: 9.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1223, allocations: 8.031 kB / 0.531 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.347e-05/0.1223, allocations: 4.188 kB / 0.531 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.1223, allocations: 46.73 kB / 0.531 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.257e-05/0.1224, allocations: 24.8 kB / 0.531 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.1227, allocations: 209.1 kB / 0.5312 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1228, allocations: 12.38 kB / 0.5312 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.1228, allocations: 12.38 kB / 0.5312 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.1231, allocations: 155.2 kB / 0.5314 GB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1231, allocations: 7.953 kB / 0.5314 GB, free: 9.434 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1232, allocations: 4 kB / 0.5314 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1232, allocations: 11.98 kB / 0.5314 GB, free: 9.418 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.1234, allocations: 103.9 kB / 0.5315 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008511/0.1243, allocations: 0.5075 MB / 0.532 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.1245, allocations: 130.5 kB / 0.5321 GB, free: 8.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.1247, allocations: 60.83 kB / 0.5322 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.1247, allocations: 0 / 0.5322 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1247, allocations: 42.5 kB / 0.5322 GB, free: 8.512 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.1247, allocations: 0 / 0.5322 GB, free: 8.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001143/0.1259, allocations: 498 kB / 0.5327 GB, free: 7.992 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1259, allocations: 55.34 kB / 0.5328 GB, free: 7.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.1262, allocations: 224.9 kB / 0.533 GB, free: 7.695 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.1262, allocations: 29.7 kB / 0.533 GB, free: 7.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.1263, allocations: 140.5 kB / 0.5331 GB, free: 7.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.1264, allocations: 71.41 kB / 0.5332 GB, free: 7.449 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/0.1264, allocations: 33.72 kB / 0.5332 GB, free: 7.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.1266, allocations: 334.8 kB / 0.5336 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.1267, allocations: 55.91 kB / 0.5336 GB, free: 7.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.1269, allocations: 78.55 kB / 0.5337 GB, free: 6.934 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.001165/0.128, allocations: 343.8 kB / 0.534 GB, free: 6.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.128, allocations: 0 / 0.534 GB, free: 6.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003636/0.1284, allocations: 193.9 kB / 0.5342 GB, free: 6.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1284, allocations: 4.031 kB / 0.5342 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1284, allocations: 7.984 kB / 0.5342 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1285, allocations: 4 kB / 0.5342 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.1287, allocations: 59.91 kB / 0.5343 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1287, allocations: 0 / 0.5343 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.1288, allocations: 12 kB / 0.5343 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.1289, allocations: 7.984 kB / 0.5343 GB, free: 6.301 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.0001217/0.129, allocations: 129.8 kB / 0.5344 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.129, allocations: 27.8 kB / 0.5344 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.688e-05/0.1291, allocations: 30.11 kB / 0.5345 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1291, allocations: 0 / 0.5345 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.1291, allocations: 0 / 0.5345 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1291, allocations: 0 / 0.5345 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.1298, allocations: 489.4 kB / 0.5349 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1298, allocations: 0 / 0.5349 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.1301, allocations: 51.91 kB / 0.535 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1301, allocations: 0 / 0.535 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.1301, allocations: 4 kB / 0.535 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.1301, allocations: 4 kB / 0.535 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1301, allocations: 3.938 kB / 0.535 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005227/0.1306, allocations: 335.1 kB / 0.5353 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.1307, allocations: 31.89 kB / 0.5353 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.1307, allocations: 8 kB / 0.5354 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.1309, allocations: 11.98 kB / 0.5354 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.778e-05/0.1309, allocations: 15.92 kB / 0.5354 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.1309, allocations: 8 kB / 0.5354 GB, free: 5.094 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.1311, allocations: 168.4 kB / 0.5356 GB, free: 4.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1311, allocations: 0 / 0.5356 GB, free: 4.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.1314, allocations: 40 kB / 0.5356 GB, free: 4.891 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.0008056/0.1322, allocations: 0.8571 MB / 0.5364 GB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003212/0.1325, allocations: 132.1 kB / 0.5366 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1325, allocations: 4.062 kB / 0.5366 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.1327, allocations: 67.91 kB / 0.5366 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.133, allocations: 36.66 kB / 0.5367 GB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.1363, allocations: 2.441 MB / 0.539 GB, free: 1.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.1364, allocations: 137.7 kB / 0.5392 GB, free: 1.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.525e-05/0.1365, allocations: 33.59 kB / 0.5392 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1366, allocations: 63.42 kB / 0.5393 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1366, allocations: 0 / 0.5393 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2146/0.3512, allocations: 4.671 MB / 0.5438 GB, free: 23.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.81, allocations: 7.906 kB / 0.5438 GB, free: 23.06 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.637025782023557] Failed to read output from testmodel.py, exit status != 0: 11.977938364027068 11.994751365 11.87043632 Calling exit ...