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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2844/0.2844, allocations: 48.84 MB / 319.9 MB, free: 11.1 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 71.17 kB / 390.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.09079, allocations: 59.17 MB / 449.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.004087/0.09491, allocations: 2.641 MB / 452 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.09637, allocations: 0.7448 MB / 452.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.09666, allocations: 7.938 kB / 452.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.09684, allocations: 43.52 kB / 452.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003782/0.09723, allocations: 127 kB / 452.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.09747, allocations: 79.89 kB / 453 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.09794, allocations: 398.2 kB / 453.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.09814, allocations: 85.56 kB / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002376/0.09839, allocations: 155.3 kB / 453.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.09863, allocations: 159.2 kB / 453.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.975e-05/0.09869, allocations: 28 kB / 453.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.823e-05/0.09879, allocations: 32 kB / 453.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.257e-05/0.09886, allocations: 71.69 kB / 453.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.09903, allocations: 167 kB / 454.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.09937, allocations: 315 kB / 454.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09938, allocations: 0 / 454.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09939, allocations: 0 / 454.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.0994, allocations: 0 / 454.4 MB, free: 4.613 MB / 334.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.001106/0.1005, allocations: 0.6658 MB / 455 MB, free: 3.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1006, allocations: 15.89 kB / 455 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.232e-05/0.1006, allocations: 62.72 kB / 455.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.1008, allocations: 40.47 kB / 455.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.1012, allocations: 307.9 kB / 455.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.1012, allocations: 20.81 kB / 455.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.1012, allocations: 28.38 kB / 455.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.1017, allocations: 242.8 kB / 455.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1017, allocations: 0 / 455.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1017, allocations: 15.98 kB / 455.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1017, allocations: 4 kB / 455.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.1021, allocations: 185.6 kB / 455.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.1034, allocations: 0.8594 MB / 456.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.1037, allocations: 186.6 kB / 457 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.104, allocations: 112.8 kB / 457.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.104, allocations: 4 kB / 457.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.104, allocations: 42.5 kB / 457.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.104, allocations: 0 / 457.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001476/0.1055, allocations: 0.7421 MB / 457.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.1056, allocations: 51.41 kB / 457.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003097/0.1059, allocations: 300.5 kB / 458.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.1059, allocations: 33.69 kB / 458.2 MB, free: 468 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.106, allocations: 180.6 kB / 458.4 MB, free: 284 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.813e-05/0.1061, allocations: 98.55 kB / 458.5 MB, free: 184 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.1062, allocations: 57.7 kB / 458.6 MB, free: 120 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1063, allocations: 342.8 kB / 458.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.1065, allocations: 71.97 kB / 459 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002339/0.1068, allocations: 106.7 kB / 459.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003535/0.1071, allocations: 196.2 kB / 459.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1071, allocations: 0 / 459.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006512/0.1078, allocations: 326.9 kB / 459.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1078, allocations: 4 kB / 459.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1078, allocations: 3.938 kB / 459.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.1081, allocations: 52.81 kB / 459.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.1085, allocations: 87.94 kB / 459.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.1109, allocations: 3.02 MB / 462.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.1111, allocations: 23.94 kB / 462.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.1112, allocations: 8 kB / 462.8 MB, free: 11.58 MB / 350.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.0001391/0.1113, allocations: 142.9 kB / 462.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.1114, allocations: 31.62 kB / 463 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004862/0.1119, allocations: 265.5 kB / 463.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1119, allocations: 4 kB / 463.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1119, allocations: 7.984 kB / 463.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1119, allocations: 7.922 kB / 463.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009344/0.1129, allocations: 0.6586 MB / 463.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1129, allocations: 4 kB / 463.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003267/0.1132, allocations: 63.91 kB / 464 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1132, allocations: 0 / 464 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.1132, allocations: 15.94 kB / 464 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1133, allocations: 0 / 464 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1133, allocations: 0 / 464 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.1139, allocations: 450.8 kB / 464.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.1141, allocations: 120.8 kB / 464.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.1141, allocations: 15.88 kB / 464.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.1143, allocations: 11.98 kB / 464.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.1144, allocations: 19.98 kB / 464.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.1144, allocations: 7.984 kB / 464.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.1146, allocations: 211.1 kB / 464.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1146, allocations: 0 / 464.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.115, allocations: 72 kB / 464.9 MB, free: 9.391 MB / 350.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.0009472/0.1159, allocations: 0.9782 MB / 465.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009396/0.1169, allocations: 382.5 kB / 466.2 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1169, allocations: 0 / 466.2 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.1171, allocations: 103.9 kB / 466.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.1176, allocations: 54.27 kB / 466.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004578/0.1222, allocations: 3.393 MB / 469.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.1225, allocations: 0.7915 MB / 470.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.1227, allocations: 30.97 kB / 470.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.1228, allocations: 119.4 kB / 470.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1228, allocations: 0 / 470.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02818/0.151, allocations: 6.841 MB / 477.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.47, allocations: 3.953 kB / 477.6 MB, free: 12.48 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)