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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.2 MB / 219.4 MB, free: 14.19 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000817/0.000817, allocations: 78.72 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2724/0.2724, allocations: 48.78 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.562e-05, allocations: 4 kB / 432.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 60.24 MB / 492.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4659, allocations: 86.83 MB / 0.566 GB, free: 2.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.4662, allocations: 70.77 kB / 0.5661 GB, free: 2.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01515/0.4813, allocations: 5.463 MB / 0.5714 GB, free: 13.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4814, allocations: 0 / 0.5714 GB, free: 13.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.4814, allocations: 7.984 kB / 0.5715 GB, free: 13.6 MB / 394.7 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.0007546/0.4822, allocations: 0.562 MB / 0.572 GB, free: 13.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4822, allocations: 12.03 kB / 0.572 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.109e-05/0.4823, allocations: 60.92 kB / 0.5721 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/0.4824, allocations: 39.53 kB / 0.5721 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.4828, allocations: 320.2 kB / 0.5724 GB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.4829, allocations: 18.56 kB / 0.5724 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.4829, allocations: 28.94 kB / 0.5725 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.4833, allocations: 229.4 kB / 0.5727 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.4833, allocations: 224 / 0.5727 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.4833, allocations: 10.81 kB / 0.5727 GB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.4833, allocations: 11.89 kB / 0.5727 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.4836, allocations: 148.7 kB / 0.5728 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.4847, allocations: 0.8486 MB / 0.5737 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.485, allocations: 178.2 kB / 0.5738 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.4852, allocations: 94.61 kB / 0.5739 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.4852, allocations: 4 kB / 0.5739 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.4852, allocations: 46.05 kB / 0.574 GB, free: 11.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.293e-06/0.4852, allocations: 0 / 0.574 GB, free: 11.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.001138/0.4864, allocations: 0.6241 MB / 0.5746 GB, free: 10.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.4864, allocations: 55.64 kB / 0.5746 GB, free: 10.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.4867, allocations: 265.6 kB / 0.5749 GB, free: 10.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.4868, allocations: 28.95 kB / 0.5749 GB, free: 10.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.4869, allocations: 181.8 kB / 0.5751 GB, free: 10.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.779e-05/0.487, allocations: 95.75 kB / 0.5752 GB, free: 10.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.487, allocations: 10.88 kB / 0.5752 GB, free: 10.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.4872, allocations: 344.5 kB / 0.5755 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.4873, allocations: 60.75 kB / 0.5756 GB, free: 9.746 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.4875, allocations: 98.12 kB / 0.5757 GB, free: 9.664 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.4876, allocations: 73.81 kB / 0.5758 GB, free: 9.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4876, allocations: 7.891 kB / 0.5758 GB, free: 9.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005708/0.4882, allocations: 311.3 kB / 0.5761 GB, free: 9.363 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4882, allocations: 11.95 kB / 0.5761 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.4882, allocations: 0 / 0.5761 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/0.4886, allocations: 77.55 kB / 0.5761 GB, free: 9.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/0.489, allocations: 78.52 kB / 0.5762 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.4906, allocations: 1.944 MB / 0.5781 GB, free: 7.172 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.4908, allocations: 19.97 kB / 0.5781 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.4908, allocations: 7.875 kB / 0.5781 GB, free: 7.152 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.4909, allocations: 128.7 kB / 0.5783 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.491, allocations: 31.62 kB / 0.5783 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003925/0.4914, allocations: 240.5 kB / 0.5785 GB, free: 6.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.4914, allocations: 4 kB / 0.5785 GB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.4914, allocations: 3.984 kB / 0.5785 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4914, allocations: 4 kB / 0.5785 GB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008441/0.4923, allocations: 0.671 MB / 0.5792 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4923, allocations: 0 / 0.5792 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.4927, allocations: 75.77 kB / 0.5793 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.4927, allocations: 4 kB / 0.5793 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.4927, allocations: 3.75 kB / 0.5793 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4927, allocations: 0 / 0.5793 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4927, allocations: 8 kB / 0.5793 GB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.4932, allocations: 422.9 kB / 0.5797 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.4933, allocations: 120.1 kB / 0.5798 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.4934, allocations: 7.859 kB / 0.5798 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.4936, allocations: 11.81 kB / 0.5798 GB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.4937, allocations: 19.84 kB / 0.5798 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.4937, allocations: 12 kB / 0.5798 GB, free: 5.617 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.4939, allocations: 208.7 kB / 0.58 GB, free: 5.449 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4939, allocations: 0 / 0.58 GB, free: 5.449 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003247/0.4942, allocations: 79.31 kB / 0.5801 GB, free: 5.383 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008907/0.4951, allocations: 0.9514 MB / 0.581 GB, free: 4.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.4957, allocations: 217.3 kB / 0.5813 GB, free: 4.332 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4957, allocations: 0 / 0.5813 GB, free: 4.332 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.4959, allocations: 102.9 kB / 0.5814 GB, free: 4.258 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.4963, allocations: 63.59 kB / 0.5814 GB, free: 4.215 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.498, allocations: 0.8599 MB / 0.5823 GB, free: 3.371 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.4984, allocations: 0.799 MB / 0.583 GB, free: 2.547 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000151/0.4986, allocations: 38.95 kB / 0.5831 GB, free: 2.508 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.4988, allocations: 115.7 kB / 0.5832 GB, free: 2.473 MB / 394.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4988, allocations: 0 / 0.5832 GB, free: 2.473 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01991/0.5187, allocations: 6.277 MB / 0.5893 GB, free: 12.19 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.5189, allocations: 183.1 kB / 0.5895 GB, free: 11.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/2.728, allocations: 3.938 kB / 0.5895 GB, free: 11.96 MB / 410.7 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/linux/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)