Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.001303/0.001303, 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.001403/0.001403, allocations: 214.7 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.475/1.475, allocations: 207.7 MB / 235.4 MB, free: 9.766 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.323/0.323, allocations: 49.6 MB / 337.2 MB, free: 3.867 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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.002194/0.002194, allocations: 74.55 kB / 477.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1246, allocations: 62.41 MB / 0.5269 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003895/0.1285, allocations: 2.47 MB / 0.5293 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1298, allocations: 0.7138 MB / 0.53 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.13, allocations: 7.938 kB / 0.53 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.1301, allocations: 51.45 kB / 0.5301 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003329/0.1305, allocations: 123 kB / 0.5302 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.1307, allocations: 87.83 kB / 0.5303 GB, free: 10.67 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.1312, allocations: 398.2 kB / 0.5306 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.1314, allocations: 77.8 kB / 0.5307 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.1316, allocations: 159.3 kB / 0.5309 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1318, allocations: 159.2 kB / 0.531 GB, free: 9.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/0.1319, allocations: 24 kB / 0.531 GB, free: 9.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.385e-05/0.132, allocations: 28 kB / 0.5311 GB, free: 9.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.1321, allocations: 75.62 kB / 0.5311 GB, free: 9.766 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1322, allocations: 139.3 kB / 0.5313 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.1326, allocations: 318.5 kB / 0.5316 GB, free: 9.316 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1326, allocations: 11.98 kB / 0.5316 GB, free: 9.305 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1326, allocations: 0 / 0.5316 GB, free: 9.305 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.1327, allocations: 0 / 0.5316 GB, free: 9.305 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001182/0.1338, allocations: 0.5982 MB / 0.5322 GB, free: 8.676 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1339, allocations: 12.03 kB / 0.5322 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.643e-05/0.1339, allocations: 4.625 kB / 0.5322 GB, free: 8.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.356e-05/0.134, allocations: 58.67 kB / 0.5323 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1341, allocations: 44.7 kB / 0.5323 GB, free: 8.551 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.1346, allocations: 258.4 kB / 0.5325 GB, free: 8.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.1346, allocations: 20.81 kB / 0.5326 GB, free: 8.25 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/0.1347, allocations: 28.33 kB / 0.5326 GB, free: 8.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.1352, allocations: 242.6 kB / 0.5328 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.1352, allocations: 7.938 kB / 0.5328 GB, free: 7.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.1352, allocations: 8 kB / 0.5328 GB, free: 7.953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1352, allocations: 8 kB / 0.5328 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.1357, allocations: 169.6 kB / 0.533 GB, free: 7.777 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.137, allocations: 0.7517 MB / 0.5337 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.1374, allocations: 178.6 kB / 0.5339 GB, free: 6.793 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.1376, allocations: 96.81 kB / 0.534 GB, free: 6.695 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.1376, allocations: 4 kB / 0.534 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.1376, allocations: 38.5 kB / 0.534 GB, free: 6.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.1376, allocations: 3.938 kB / 0.534 GB, free: 6.641 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.001514/0.1392, allocations: 0.6672 MB / 0.5347 GB, free: 5.945 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.1392, allocations: 55.41 kB / 0.5347 GB, free: 5.879 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.1396, allocations: 300.5 kB / 0.535 GB, free: 5.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.1396, allocations: 29.7 kB / 0.5351 GB, free: 5.543 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.1397, allocations: 180.8 kB / 0.5352 GB, free: 5.359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.133e-05/0.1398, allocations: 107.1 kB / 0.5353 GB, free: 5.254 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.06e-05/0.1399, allocations: 53.7 kB / 0.5354 GB, free: 5.195 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1401, allocations: 342.8 kB / 0.5357 GB, free: 4.852 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1403, allocations: 75.95 kB / 0.5358 GB, free: 4.777 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.1405, allocations: 110.7 kB / 0.5359 GB, free: 4.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1408, allocations: 192.1 kB / 0.5361 GB, free: 4.465 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1408, allocations: 0 / 0.5361 GB, free: 4.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006936/0.1415, allocations: 323.1 kB / 0.5364 GB, free: 4.141 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1415, allocations: 4 kB / 0.5364 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1416, allocations: 4 kB / 0.5364 GB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000309/0.1419, allocations: 60.88 kB / 0.5365 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.1423, allocations: 71.89 kB / 0.5365 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.1453, allocations: 2.817 MB / 0.5393 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.1455, allocations: 23.91 kB / 0.5393 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.1455, allocations: 4 kB / 0.5393 GB, free: 0.9258 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.1457, allocations: 145.8 kB / 0.5394 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/0.1458, allocations: 27.88 kB / 0.5395 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005288/0.1463, allocations: 269.6 kB / 0.5397 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.1463, allocations: 4 kB / 0.5397 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.1463, allocations: 0 / 0.5397 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1463, allocations: 3.938 kB / 0.5397 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2413/0.3876, allocations: 0.6044 MB / 0.5403 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.3876, allocations: 0 / 0.5403 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.3882, allocations: 66.66 kB / 0.5404 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.3882, allocations: 4.344 kB / 0.5404 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.3882, allocations: 10.94 kB / 0.5404 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.874e-06/0.3882, allocations: 2.406 kB / 0.5404 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3882, allocations: 0.5156 kB / 0.5404 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.3893, allocations: 448.3 kB / 0.5408 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.3895, allocations: 46.61 kB / 0.5409 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.014e-05/0.3895, allocations: 5.016 kB / 0.5409 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.3899, allocations: 15.09 kB / 0.5409 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.12e-05/0.3899, allocations: 19.62 kB / 0.5409 GB, free: 22.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.39, allocations: 5.328 kB / 0.5409 GB, free: 22.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003088/0.3903, allocations: 216 kB / 0.5411 GB, free: 22.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3903, allocations: 0.9062 kB / 0.5411 GB, free: 22.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006173/0.3909, allocations: 74.78 kB / 0.5412 GB, free: 22.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.001162/0.3921, allocations: 0.9747 MB / 0.5421 GB, free: 21.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3933, allocations: 364.9 kB / 0.5425 GB, free: 21.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3933, allocations: 0 / 0.5425 GB, free: 21.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.3935, allocations: 105 kB / 0.5426 GB, free: 21.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006814/0.3942, allocations: 60.16 kB / 0.5426 GB, free: 21.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006156/0.4004, allocations: 3.381 MB / 0.546 GB, free: 19.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.4006, allocations: 184.8 kB / 0.5461 GB, free: 19.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.4008, allocations: 33.89 kB / 0.5462 GB, free: 19.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.401, allocations: 120.1 kB / 0.5463 GB, free: 19.78 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.401, allocations: 0 / 0.5463 GB, free: 19.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04154/0.4426, allocations: 7.483 MB / 0.5536 GB, free: 18.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.57, allocations: 2.594 kB / 0.5536 GB, free: 18.53 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.653606876032427] Failed to read output from testmodel.py, exit status != 0: 12.743473089998588 12.765350077 12.628528951 Calling exit ...