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.001543/0.001543, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001396/0.001396, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.312/1.312, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] 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.2756/0.2756, allocations: 49.56 MB / 337.1 MB, free: 4.098 MB / 270.1 MB " [Timeout remaining time 180] 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.002036/0.002036, allocations: 63.91 kB / 477.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 62.42 MB / 0.5269 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003521/0.1125, allocations: 2.207 MB / 0.529 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1137, allocations: 0.6319 MB / 0.5297 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1138, allocations: 7.938 kB / 0.5297 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1139, allocations: 31.66 kB / 0.5297 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.1141, allocations: 75.42 kB / 0.5298 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001476/0.1143, allocations: 55.92 kB / 0.5298 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.1146, allocations: 242.9 kB / 0.53 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.1147, allocations: 48.48 kB / 0.5301 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.1149, allocations: 103.5 kB / 0.5302 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.1151, allocations: 103.5 kB / 0.5303 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.1151, allocations: 16 kB / 0.5303 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.792e-05/0.1151, allocations: 20 kB / 0.5303 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.353e-05/0.1152, allocations: 39.78 kB / 0.5304 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.992e-05/0.1153, allocations: 107.4 kB / 0.5305 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.1155, allocations: 199 kB / 0.5307 GB, free: 10.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1156, allocations: 0 / 0.5307 GB, free: 10.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1156, allocations: 0 / 0.5307 GB, free: 10.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1156, allocations: 0 / 0.5307 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.0008283/0.1164, allocations: 473 kB / 0.5311 GB, free: 9.938 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1164, allocations: 8.031 kB / 0.5311 GB, free: 9.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.689e-05/0.1164, allocations: 8.172 kB / 0.5311 GB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.452e-05/0.1165, allocations: 46.69 kB / 0.5312 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.933e-05/0.1166, allocations: 24.8 kB / 0.5312 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.1169, allocations: 201.2 kB / 0.5314 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.1169, allocations: 12.38 kB / 0.5314 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.117, allocations: 16.31 kB / 0.5314 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.1172, allocations: 159.2 kB / 0.5316 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1173, allocations: 3.953 kB / 0.5316 GB, free: 9.426 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.1173, allocations: 8 kB / 0.5316 GB, free: 9.418 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1173, allocations: 0 / 0.5316 GB, free: 9.418 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002476/0.1175, allocations: 99.92 kB / 0.5317 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008452/0.1184, allocations: 0.5542 MB / 0.5322 GB, free: 8.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.1186, allocations: 122.5 kB / 0.5323 GB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1188, allocations: 60.83 kB / 0.5324 GB, free: 8.527 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.1188, allocations: 4 kB / 0.5324 GB, free: 8.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1188, allocations: 42.5 kB / 0.5324 GB, free: 8.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.1188, allocations: 0 / 0.5324 GB, free: 8.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001022/0.1198, allocations: 486 kB / 0.5329 GB, free: 7.965 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.1199, allocations: 59.41 kB / 0.533 GB, free: 7.895 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.1201, allocations: 228.9 kB / 0.5332 GB, free: 7.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.1201, allocations: 29.7 kB / 0.5332 GB, free: 7.625 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.659e-05/0.1202, allocations: 140.5 kB / 0.5333 GB, free: 7.484 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.1203, allocations: 63.42 kB / 0.5334 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.1204, allocations: 41.7 kB / 0.5334 GB, free: 7.375 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1205, allocations: 330.8 kB / 0.5337 GB, free: 7.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.1207, allocations: 51.97 kB / 0.5338 GB, free: 6.992 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.1208, allocations: 78.48 kB / 0.5339 GB, free: 6.906 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.0011/0.1219, allocations: 339.9 kB / 0.5342 GB, free: 6.566 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1219, allocations: 4 kB / 0.5342 GB, free: 6.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003498/0.1222, allocations: 197.9 kB / 0.5344 GB, free: 6.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1223, allocations: 4.156 kB / 0.5344 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1223, allocations: 3.984 kB / 0.5344 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1223, allocations: 7.938 kB / 0.5344 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002478/0.1225, allocations: 59.95 kB / 0.5345 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1225, allocations: 4 kB / 0.5345 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1227, allocations: 8 kB / 0.5345 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.1227, allocations: 12.03 kB / 0.5345 GB, free: 6.266 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.000132/0.1228, allocations: 137.7 kB / 0.5346 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/0.1229, allocations: 23.8 kB / 0.5346 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.083e-05/0.1229, allocations: 26.12 kB / 0.5347 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1229, allocations: 0 / 0.5347 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1229, allocations: 3.984 kB / 0.5347 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1229, allocations: 0 / 0.5347 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006995/0.1236, allocations: 0.4973 MB / 0.5352 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1236, allocations: 0 / 0.5352 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.1239, allocations: 47.97 kB / 0.5352 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1239, allocations: 0 / 0.5352 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1239, allocations: 7.984 kB / 0.5352 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1239, allocations: 4 kB / 0.5352 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1239, allocations: 3.938 kB / 0.5352 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004928/0.1244, allocations: 335.1 kB / 0.5355 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.142e-05/0.1245, allocations: 31.88 kB / 0.5356 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.1245, allocations: 7.938 kB / 0.5356 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1246, allocations: 4 kB / 0.5356 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.1247, allocations: 19.91 kB / 0.5356 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.1247, allocations: 4 kB / 0.5356 GB, free: 5.043 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.1248, allocations: 164.5 kB / 0.5358 GB, free: 4.883 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1248, allocations: 4 kB / 0.5358 GB, free: 4.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1251, allocations: 44 kB / 0.5358 GB, free: 4.836 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.0007434/0.1258, allocations: 0.8528 MB / 0.5366 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.1262, allocations: 136.5 kB / 0.5368 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1262, allocations: 0 / 0.5368 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.1263, allocations: 67.81 kB / 0.5368 GB, free: 3.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1267, allocations: 40.36 kB / 0.5369 GB, free: 3.719 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.1297, allocations: 2.449 MB / 0.5393 GB, free: 1.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.13, allocations: 0.7474 MB / 0.54 GB, free: 408 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.384e-05/0.1301, allocations: 21.62 kB / 0.54 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.1302, allocations: 67.41 kB / 0.5401 GB, free: 320 kB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1302, allocations: 4 kB / 0.5401 GB, free: 316 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2191/0.3493, allocations: 4.591 MB / 0.5446 GB, free: 22.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11, allocations: 2.938 kB / 0.5446 GB, free: 22.22 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.634276806027628] Failed to read output from testmodel.py, exit status != 0: 11.157382618985139 11.170234646 11.052181652 Calling exit ...