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.002/0.002, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002667/0.002667, allocations: 219 kB / 21.46 MB, free: 1.586 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.532/1.532, allocations: 207.6 MB / 231.8 MB, free: 4.008 MB / 174.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.4242/0.4242, allocations: 49.51 MB / 333.2 MB, free: 0.7812 MB / 254.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.002236/0.002236, allocations: 64.56 kB / 471.5 MB, free: 41.16 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.109, allocations: 62.34 MB / 0.5213 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002845/0.1118, allocations: 2.198 MB / 0.5235 GB, free: 104 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1133, allocations: 0.6281 MB / 0.5241 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1134, allocations: 7.938 kB / 0.5241 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.1136, allocations: 31.72 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.114, allocations: 79.34 kB / 0.5242 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.1142, allocations: 51.94 kB / 0.5243 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.1145, allocations: 246.9 kB / 0.5245 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.1147, allocations: 44.31 kB / 0.5245 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.1149, allocations: 99.58 kB / 0.5246 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.1151, allocations: 107.4 kB / 0.5247 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.1151, allocations: 16 kB / 0.5247 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.377e-05/0.1152, allocations: 16 kB / 0.5248 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.735e-05/0.1152, allocations: 39.84 kB / 0.5248 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.1154, allocations: 119.3 kB / 0.5249 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.1157, allocations: 199 kB / 0.5251 GB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1157, allocations: 0 / 0.5251 GB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1157, allocations: 0 / 0.5251 GB, free: 14.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1157, allocations: 0 / 0.5251 GB, free: 14.42 MB / 398.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.000971/0.1167, allocations: 0.5333 MB / 0.5256 GB, free: 13.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1167, allocations: 11.89 kB / 0.5256 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.1167, allocations: 4.188 kB / 0.5256 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.1168, allocations: 46.73 kB / 0.5257 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.1169, allocations: 24.8 kB / 0.5257 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.1173, allocations: 262.9 kB / 0.526 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.1173, allocations: 12.38 kB / 0.526 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.1174, allocations: 16.38 kB / 0.526 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.1177, allocations: 155.2 kB / 0.5261 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1177, allocations: 3.953 kB / 0.5261 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.1178, allocations: 8 kB / 0.5261 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1178, allocations: 4 kB / 0.5261 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.1181, allocations: 99.92 kB / 0.5262 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009781/0.119, allocations: 0.6036 MB / 0.5268 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.1193, allocations: 118.6 kB / 0.5269 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.1195, allocations: 64.83 kB / 0.527 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.1195, allocations: 8 kB / 0.527 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.1195, allocations: 38.44 kB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 2.885e-06/0.1195, allocations: 0 / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001255/0.1208, allocations: 0.5487 MB / 0.5276 GB, free: 11.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.1208, allocations: 59.41 kB / 0.5276 GB, free: 11.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.1211, allocations: 229 kB / 0.5279 GB, free: 11.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1211, allocations: 29.7 kB / 0.5279 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1212, allocations: 140.5 kB / 0.528 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.1213, allocations: 67.42 kB / 0.5281 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.471e-05/0.1214, allocations: 37.7 kB / 0.5281 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1216, allocations: 334.8 kB / 0.5284 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.1217, allocations: 47.97 kB / 0.5285 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1219, allocations: 86.48 kB / 0.5286 GB, free: 10.57 MB / 398.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.001366/0.1232, allocations: 428.8 kB / 0.529 GB, free: 10.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1232, allocations: 0 / 0.529 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004162/0.1236, allocations: 193.3 kB / 0.5292 GB, free: 9.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.1237, allocations: 7.984 kB / 0.5292 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1237, allocations: 4 kB / 0.5292 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1237, allocations: 0 / 0.5292 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.124, allocations: 55.91 kB / 0.5292 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.124, allocations: 8 kB / 0.5292 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.1241, allocations: 11.98 kB / 0.5292 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.1241, allocations: 8.031 kB / 0.5293 GB, free: 9.832 MB / 398.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.0001685/0.1243, allocations: 129.8 kB / 0.5294 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.1244, allocations: 27.8 kB / 0.5294 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.1244, allocations: 26.17 kB / 0.5294 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.1244, allocations: 0 / 0.5294 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1245, allocations: 4 kB / 0.5294 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1245, allocations: 0 / 0.5294 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008617/0.1253, allocations: 0.5217 MB / 0.5299 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1253, allocations: 3.938 kB / 0.5299 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.1256, allocations: 47.97 kB / 0.53 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1256, allocations: 0 / 0.53 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1256, allocations: 8 kB / 0.53 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1256, allocations: 0 / 0.53 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1256, allocations: 0 / 0.53 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.1262, allocations: 347.3 kB / 0.5303 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.1264, allocations: 105 kB / 0.5304 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.1264, allocations: 8 kB / 0.5304 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.1265, allocations: 7.984 kB / 0.5304 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.1266, allocations: 15.92 kB / 0.5305 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.1266, allocations: 4 kB / 0.5305 GB, free: 8.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.1268, allocations: 164.5 kB / 0.5306 GB, free: 8.328 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1268, allocations: 4 kB / 0.5306 GB, free: 8.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1271, allocations: 44 kB / 0.5307 GB, free: 8.281 MB / 398.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.000866/0.128, allocations: 0.8567 MB / 0.5315 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003795/0.1283, allocations: 127.9 kB / 0.5316 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1283, allocations: 0 / 0.5316 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.1285, allocations: 63.91 kB / 0.5317 GB, free: 7.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.1289, allocations: 44.28 kB / 0.5317 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.1324, allocations: 2.447 MB / 0.5341 GB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1328, allocations: 0.7436 MB / 0.5348 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.1329, allocations: 21.53 kB / 0.5349 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.1331, allocations: 59.42 kB / 0.5349 GB, free: 3.781 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1331, allocations: 11.94 kB / 0.5349 GB, free: 3.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.1579, allocations: 4.394 MB / 0.5392 GB, free: 15.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.691/8.849, allocations: 11.92 kB / 0.5392 GB, free: 15.31 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.93897326104343] Failed to read output from testmodel.py, exit status != 0: 8.978563777985983 8.995101911 8.876429566 Calling exit ...