Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.001267/0.001267, 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.001394/0.001394, allocations: 214.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.299/1.299, allocations: 207.6 MB / 234.5 MB, free: 10 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.2653/0.2653, allocations: 49.57 MB / 336.3 MB, free: 4.102 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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.002148/0.002148, allocations: 67.89 kB / 476.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1096, allocations: 62.43 MB / 0.5261 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.00325/0.1129, allocations: 2.079 MB / 0.5281 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009808/0.1139, allocations: 0.6126 MB / 0.5287 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.862e-05/0.114, allocations: 7.938 kB / 0.5288 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.1141, allocations: 23.72 kB / 0.5288 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1143, allocations: 67.48 kB / 0.5288 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001415/0.1144, allocations: 51.88 kB / 0.5289 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.1147, allocations: 207 kB / 0.5291 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1148, allocations: 36.78 kB / 0.5291 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1149, allocations: 83.64 kB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.115, allocations: 83.55 kB / 0.5293 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.1151, allocations: 16 kB / 0.5293 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.022e-05/0.1151, allocations: 19.94 kB / 0.5293 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.912e-05/0.1152, allocations: 31.8 kB / 0.5293 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.641e-05/0.1152, allocations: 91.52 kB / 0.5294 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.1155, allocations: 155.2 kB / 0.5296 GB, free: 10.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1155, allocations: 12 kB / 0.5296 GB, free: 10.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1155, allocations: 0 / 0.5296 GB, free: 10.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1155, allocations: 0 / 0.5296 GB, free: 10.74 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007009/0.1162, allocations: 429.2 kB / 0.53 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.1162, allocations: 12.03 kB / 0.53 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.119e-05/0.1163, allocations: 38.75 kB / 0.53 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.731e-05/0.1163, allocations: 24.8 kB / 0.5301 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.1166, allocations: 195.1 kB / 0.5303 GB, free: 9.988 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1166, allocations: 8.375 kB / 0.5303 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.1167, allocations: 12.38 kB / 0.5303 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.1169, allocations: 131.4 kB / 0.5304 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1169, allocations: 0 / 0.5304 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1169, allocations: 4 kB / 0.5304 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.1169, allocations: 8 kB / 0.5304 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.1171, allocations: 75.94 kB / 0.5305 GB, free: 9.742 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007207/0.1178, allocations: 0.4917 MB / 0.531 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.1181, allocations: 118.4 kB / 0.5311 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.1182, allocations: 40.84 kB / 0.5311 GB, free: 9.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.1182, allocations: 4 kB / 0.5311 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.1182, allocations: 34.5 kB / 0.5312 GB, free: 8.988 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 1.082e-06/0.1182, allocations: 0 / 0.5312 GB, free: 8.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007407/0.119, allocations: 365 kB / 0.5315 GB, free: 8.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.119, allocations: 55.41 kB / 0.5316 GB, free: 8.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.1192, allocations: 232.9 kB / 0.5318 GB, free: 8.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1192, allocations: 25.7 kB / 0.5318 GB, free: 8.266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.095e-05/0.1193, allocations: 128.3 kB / 0.5319 GB, free: 8.137 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.1194, allocations: 47.58 kB / 0.532 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.864e-05/0.1194, allocations: 29.72 kB / 0.532 GB, free: 8.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1196, allocations: 334.8 kB / 0.5323 GB, free: 7.719 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.1196, allocations: 27.98 kB / 0.5323 GB, free: 7.691 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-05/0.1197, allocations: 54.56 kB / 0.5324 GB, free: 7.629 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.1199, allocations: 98.48 kB / 0.5325 GB, free: 7.523 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1199, allocations: 8 kB / 0.5325 GB, free: 7.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002454/0.1202, allocations: 149.4 kB / 0.5326 GB, free: 7.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1202, allocations: 4 kB / 0.5326 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.1202, allocations: 0 / 0.5326 GB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1202, allocations: 7.938 kB / 0.5327 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.1203, allocations: 31.98 kB / 0.5327 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.1203, allocations: 0 / 0.5327 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1204, allocations: 12.05 kB / 0.5327 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.1204, allocations: 8 kB / 0.5327 GB, free: 7.301 MB / 414.1 MB 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 (16): * Single equations (assignments): 16 * 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 9.823e-05/0.1205, allocations: 129.7 kB / 0.5328 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.1206, allocations: 23.8 kB / 0.5328 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.865e-05/0.1206, allocations: 25.7 kB / 0.5329 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.1206, allocations: 3.984 kB / 0.5329 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.1206, allocations: 0 / 0.5329 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1206, allocations: 0 / 0.5329 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005374/0.1212, allocations: 417.5 kB / 0.5333 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1212, allocations: 0 / 0.5333 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.1213, allocations: 31.92 kB / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1213, allocations: 0 / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1213, allocations: 0 / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1213, allocations: 0 / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1214, allocations: 3.984 kB / 0.5333 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003517/0.1217, allocations: 267.2 kB / 0.5336 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.575e-05/0.1218, allocations: 23.94 kB / 0.5336 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.1218, allocations: 0 / 0.5336 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.1219, allocations: 11.98 kB / 0.5336 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.1219, allocations: 7.922 kB / 0.5336 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.1219, allocations: 4 kB / 0.5336 GB, free: 6.285 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.1221, allocations: 164.5 kB / 0.5338 GB, free: 6.125 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1221, allocations: 0 / 0.5338 GB, free: 6.125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.1224, allocations: 35.94 kB / 0.5338 GB, free: 6.09 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 (12): * Single equations (assignments): 12 * 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.000608/0.123, allocations: 0.7915 MB / 0.5346 GB, free: 5.273 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002033/0.1232, allocations: 80.02 kB / 0.5346 GB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1232, allocations: 0 / 0.5346 GB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.094e-05/0.1233, allocations: 47.98 kB / 0.5347 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.1236, allocations: 44.53 kB / 0.5347 GB, free: 5.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.1263, allocations: 2.263 MB / 0.5369 GB, free: 2.754 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.1266, allocations: 0.732 MB / 0.5377 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.334e-05/0.1267, allocations: 17.47 kB / 0.5377 GB, free: 1.977 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.771e-05/0.1267, allocations: 55.42 kB / 0.5377 GB, free: 1.922 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1267, allocations: 0 / 0.5377 GB, free: 1.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2312/0.3579, allocations: 3.923 MB / 0.5416 GB, free: 22.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.43, allocations: 9.609 kB / 0.5416 GB, free: 22.54 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.016238867072389] Failed to read output from testmodel.py, exit status != 0: 11.534162729047239 11.549607149 11.43124818 Calling exit ...