Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.001377/0.001377, allocations: 113 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.001501/0.001501, allocations: 217.4 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.44/1.44, allocations: 207.6 MB / 231.8 MB, free: 4.027 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.4046/0.4046, allocations: 49.51 MB / 333.2 MB, free: 0.7578 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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.00212/0.00212, allocations: 65.03 kB / 471.5 MB, free: 41.04 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1153, allocations: 62.35 MB / 0.5213 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003947/0.1192, allocations: 3.157 MB / 0.5244 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.121, allocations: 0.8383 MB / 0.5252 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002284/0.1213, allocations: 11.94 kB / 0.5253 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.1215, allocations: 59.31 kB / 0.5253 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003816/0.1219, allocations: 150.8 kB / 0.5255 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.1222, allocations: 131.7 kB / 0.5256 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005929/0.1228, allocations: 0.5179 MB / 0.5261 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.123, allocations: 109.5 kB / 0.5262 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.1233, allocations: 211.1 kB / 0.5264 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.1236, allocations: 226.8 kB / 0.5266 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.91e-05/0.1236, allocations: 36 kB / 0.5266 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.529e-05/0.1237, allocations: 36 kB / 0.5267 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.909e-05/0.1238, allocations: 95.61 kB / 0.5268 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.124, allocations: 238.6 kB / 0.527 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005567/0.1246, allocations: 437.9 kB / 0.5274 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1246, allocations: 3.938 kB / 0.5274 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.1246, allocations: 0 / 0.5274 GB, free: 12.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1246, allocations: 0 / 0.5274 GB, free: 12.04 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001464/0.1261, allocations: 0.8057 MB / 0.5282 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.752e-05/0.1261, allocations: 15.89 kB / 0.5282 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.165e-05/0.1261, allocations: 8.844 kB / 0.5282 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.604e-05/0.1262, allocations: 74.7 kB / 0.5283 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.1264, allocations: 56.61 kB / 0.5283 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.1269, allocations: 370.4 kB / 0.5287 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.1269, allocations: 29.03 kB / 0.5287 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-05/0.127, allocations: 40.31 kB / 0.5288 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005603/0.1276, allocations: 321.8 kB / 0.5291 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1276, allocations: 4 kB / 0.5291 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.1276, allocations: 12 kB / 0.5291 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1276, allocations: 8 kB / 0.5291 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004951/0.1281, allocations: 214.4 kB / 0.5293 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.1301, allocations: 1.168 MB / 0.5304 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005375/0.1307, allocations: 243.6 kB / 0.5307 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.1309, allocations: 117.4 kB / 0.5308 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.1309, allocations: 4.281 kB / 0.5308 GB, free: 8.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1309, allocations: 38.84 kB / 0.5308 GB, free: 8.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.674e-06/0.1309, allocations: 0 / 0.5308 GB, free: 8.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.00234/0.1333, allocations: 1.085 MB / 0.5319 GB, free: 7.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.1333, allocations: 63.33 kB / 0.5319 GB, free: 7.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004664/0.1338, allocations: 385.5 kB / 0.5323 GB, free: 6.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.1338, allocations: 33.7 kB / 0.5323 GB, free: 6.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.134, allocations: 221.2 kB / 0.5326 GB, free: 6.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1341, allocations: 138.8 kB / 0.5327 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.1342, allocations: 66.14 kB / 0.5328 GB, free: 6.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1344, allocations: 354.8 kB / 0.5331 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.1346, allocations: 96.83 kB / 0.5332 GB, free: 5.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.1348, allocations: 144.6 kB / 0.5333 GB, free: 5.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.1353, allocations: 256 kB / 0.5336 GB, free: 5.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1353, allocations: 11.94 kB / 0.5336 GB, free: 5.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005993/0.1359, allocations: 341.1 kB / 0.5339 GB, free: 5.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1359, allocations: 4 kB / 0.5339 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1359, allocations: 0 / 0.5339 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.1359, allocations: 4 kB / 0.5339 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007459/0.1367, allocations: 152 kB / 0.5341 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.1381, allocations: 1.445 MB / 0.5355 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.1384, allocations: 11.98 kB / 0.5355 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.1384, allocations: 12 kB / 0.5355 GB, free: 3.258 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.1386, allocations: 153.8 kB / 0.5356 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.1387, allocations: 47.72 kB / 0.5357 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006141/0.1393, allocations: 322 kB / 0.536 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1393, allocations: 0 / 0.536 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.1393, allocations: 4 kB / 0.536 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1393, allocations: 3.938 kB / 0.536 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.1406, allocations: 0.7875 MB / 0.5368 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1406, allocations: 0 / 0.5368 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.141, allocations: 79.91 kB / 0.5368 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.141, allocations: 4 kB / 0.5368 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.1411, allocations: 11.98 kB / 0.5369 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.1411, allocations: 4 kB / 0.5369 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1411, allocations: 0 / 0.5369 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.1419, allocations: 0.509 MB / 0.5374 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.142, allocations: 140.8 kB / 0.5375 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1421, allocations: 8 kB / 0.5375 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.1423, allocations: 15.94 kB / 0.5375 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.151e-05/0.1424, allocations: 27.97 kB / 0.5375 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1424, allocations: 4 kB / 0.5375 GB, free: 1.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003408/0.1427, allocations: 275.1 kB / 0.5378 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1427, allocations: 0 / 0.5378 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.1431, allocations: 88 kB / 0.5379 GB, free: 0.6914 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.001196/0.1443, allocations: 1.049 MB / 0.5389 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000756/0.1451, allocations: 272.3 kB / 0.5392 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1451, allocations: 4 kB / 0.5392 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.1453, allocations: 124.2 kB / 0.5393 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.1459, allocations: 82.94 kB / 0.5394 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00615/0.152, allocations: 3.991 MB / 0.5433 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.1526, allocations: 0.8313 MB / 0.5441 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.1528, allocations: 51.23 kB / 0.5441 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.153, allocations: 155.4 kB / 0.5443 GB, free: 9.984 MB / 414.1 MB Notification: Performance of SimCode: time 1.443e-06/0.153, allocations: 0 / 0.5443 GB, free: 9.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03002/0.1831, allocations: 8.706 MB / 0.5528 GB, free: 1.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.068/9.251, allocations: 7.953 kB / 0.5528 GB, free: 1.215 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.317074758990202] Failed to read output from testmodel.py, exit status != 0: 9.402785228972789 9.427828049 9.29813524 Calling exit ...