Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.001299/0.001298, allocations: 174.4 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.495/1.495, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.000863/0.0008631, allocations: 86.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.283/0.283, allocations: 48.78 MB / 364.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.366e-05, allocations: 7.938 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 60.25 MB / 492.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.4889, allocations: 86.56 MB / 0.5658 GB, free: 2.496 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4892, allocations: 67.95 kB / 0.5659 GB, free: 2.465 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01039/0.4996, allocations: 3.65 MB / 0.5694 GB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4996, allocations: 0 / 0.5694 GB, free: 15.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.4996, allocations: 9.5 kB / 0.5694 GB, free: 15.37 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005672/0.5002, allocations: 469.1 kB / 0.5699 GB, free: 14.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.5003, allocations: 8.031 kB / 0.5699 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.051e-05/0.5003, allocations: 48.92 kB / 0.5699 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.887e-05/0.5004, allocations: 27.67 kB / 0.57 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.5007, allocations: 263.3 kB / 0.5702 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.5007, allocations: 11.56 kB / 0.5702 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.5008, allocations: 15.31 kB / 0.5702 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.501, allocations: 147.2 kB / 0.5704 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.501, allocations: 3.906 kB / 0.5704 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.5011, allocations: 3.625 kB / 0.5704 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.5011, allocations: 4 kB / 0.5704 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.5013, allocations: 85.06 kB / 0.5705 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008513/0.5021, allocations: 0.6084 MB / 0.5711 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.5023, allocations: 120.9 kB / 0.5712 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.5025, allocations: 66.48 kB / 0.5712 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.5025, allocations: 3.938 kB / 0.5712 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.5025, allocations: 42.12 kB / 0.5713 GB, free: 13.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.5025, allocations: 3.938 kB / 0.5713 GB, free: 13.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007736/0.5033, allocations: 495.4 kB / 0.5718 GB, free: 13.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.5034, allocations: 55.41 kB / 0.5718 GB, free: 13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.5036, allocations: 201.6 kB / 0.572 GB, free: 12.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.5036, allocations: 29.02 kB / 0.572 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.5037, allocations: 142.7 kB / 0.5722 GB, free: 12.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.5037, allocations: 65.89 kB / 0.5722 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.5037, allocations: 3.438 kB / 0.5722 GB, free: 12.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5039, allocations: 333.3 kB / 0.5726 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.46e-05/0.5039, allocations: 41.44 kB / 0.5726 GB, free: 12.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.479e-05/0.504, allocations: 70.8 kB / 0.5727 GB, free: 12.21 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008055/0.5049, allocations: 294.8 kB / 0.5729 GB, free: 11.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.5049, allocations: 0 / 0.5729 GB, free: 11.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002571/0.5051, allocations: 172.6 kB / 0.5731 GB, free: 11.81 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.5052, allocations: 8 kB / 0.5731 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5052, allocations: 0 / 0.5731 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.5052, allocations: 0 / 0.5731 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.5055, allocations: 67.58 kB / 0.5732 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.5055, allocations: 8.031 kB / 0.5732 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.5056, allocations: 7.438 kB / 0.5732 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.5057, allocations: 4 kB / 0.5732 GB, free: 11.73 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.generator.theta = generator.omega_e_nom. 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 (24): * Single equations (assignments): 24 * 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 prepare postOptimizeDAE: time 9.43e-05/0.5058, allocations: 119.6 kB / 0.5733 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.855e-05/0.5058, allocations: 27.67 kB / 0.5733 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.5061, allocations: 168.6 kB / 0.5735 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.5062, allocations: 15.89 kB / 0.5735 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5062, allocations: 7.938 kB / 0.5735 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.5062, allocations: 0 / 0.5735 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006343/0.5068, allocations: 0.5205 MB / 0.574 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.5068, allocations: 0 / 0.574 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.5071, allocations: 55.91 kB / 0.5741 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5071, allocations: 3.953 kB / 0.5741 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.5071, allocations: 3.375 kB / 0.5741 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.5072, allocations: 8 kB / 0.5741 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.5072, allocations: 3.938 kB / 0.5741 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004219/0.5076, allocations: 317.5 kB / 0.5744 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.476e-05/0.5077, allocations: 107.8 kB / 0.5745 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.5077, allocations: 7.938 kB / 0.5745 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.5079, allocations: 11.56 kB / 0.5745 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/0.5079, allocations: 7.984 kB / 0.5745 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.508, allocations: 11.44 kB / 0.5745 GB, free: 10.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001418/0.5081, allocations: 161.6 kB / 0.5747 GB, free: 10.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5081, allocations: 0 / 0.5747 GB, free: 10.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002716/0.5084, allocations: 46.75 kB / 0.5747 GB, free: 10.28 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.000642/0.509, allocations: 0.8566 MB / 0.5756 GB, free: 9.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000256/0.5093, allocations: 135.2 kB / 0.5757 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5093, allocations: 0 / 0.5757 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.5094, allocations: 69.61 kB / 0.5758 GB, free: 9.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.5097, allocations: 31.5 kB / 0.5758 GB, free: 9.289 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.5108, allocations: 0.4966 MB / 0.5763 GB, free: 8.793 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.5111, allocations: 0.7558 MB / 0.577 GB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.445e-05/0.5112, allocations: 26.06 kB / 0.5771 GB, free: 7.988 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/0.5113, allocations: 61.86 kB / 0.5771 GB, free: 7.969 MB / 394.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5113, allocations: 4 kB / 0.5771 GB, free: 7.965 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01449/0.5258, allocations: 3.931 MB / 0.581 GB, free: 4.039 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.526, allocations: 156.3 kB / 0.5811 GB, free: 3.812 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.268, allocations: 0 / 0.5811 GB, free: 3.812 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)