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/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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001502/0.001502, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.508/1.508, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008885/0.0008886, allocations: 91.17 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4189/0.4189, allocations: 48.77 MB / 367.9 MB, free: 47.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003049/0.0003049, allocations: 12 kB / 438.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 60.24 MB / 499 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3268/0.4399, allocations: 88.56 MB / 0.5738 GB, free: 10.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4402, allocations: 77.38 kB / 0.5738 GB, free: 9.973 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01846/0.4587, allocations: 7.476 MB / 0.5811 GB, free: 2.562 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4587, allocations: 0 / 0.5811 GB, free: 2.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.4587, allocations: 8 kB / 0.5812 GB, free: 2.555 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001065/0.4598, allocations: 0.7311 MB / 0.5819 GB, free: 1.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4598, allocations: 12.03 kB / 0.5819 GB, free: 1.766 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.546e-05/0.4599, allocations: 70.75 kB / 0.5819 GB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.264e-05/0.46, allocations: 55.34 kB / 0.582 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.4604, allocations: 369.6 kB / 0.5824 GB, free: 1.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.4604, allocations: 24.59 kB / 0.5824 GB, free: 1.207 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-05/0.4605, allocations: 36 kB / 0.5824 GB, free: 1.172 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.4609, allocations: 315.1 kB / 0.5827 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.461, allocations: 4 kB / 0.5827 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.461, allocations: 12 kB / 0.5827 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.461, allocations: 16.02 kB / 0.5827 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.4614, allocations: 218.4 kB / 0.5829 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.463, allocations: 1.178 MB / 0.5841 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.4635, allocations: 277.9 kB / 0.5844 GB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.4635, allocations: 4.281 kB / 0.5844 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.4636, allocations: 34.84 kB / 0.5844 GB, free: 15.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 1.593e-06/0.4636, allocations: 0 / 0.5844 GB, free: 15.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001935/0.4655, allocations: 1.017 MB / 0.5854 GB, free: 13.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4656, allocations: 59.41 kB / 0.5855 GB, free: 13.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.4659, allocations: 328.8 kB / 0.5858 GB, free: 13.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.466, allocations: 33.7 kB / 0.5858 GB, free: 13.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.4661, allocations: 216.6 kB / 0.586 GB, free: 13.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.4662, allocations: 138.3 kB / 0.5861 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-05/0.4662, allocations: 4 kB / 0.5861 GB, free: 13.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4664, allocations: 362.8 kB / 0.5865 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.4666, allocations: 92.83 kB / 0.5866 GB, free: 12.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.4669, allocations: 149 kB / 0.5867 GB, free: 12.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.4671, allocations: 121.6 kB / 0.5868 GB, free: 12.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4671, allocations: 0 / 0.5868 GB, free: 12.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005519/0.4677, allocations: 350 kB / 0.5872 GB, free: 12.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.4677, allocations: 7.938 kB / 0.5872 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.4677, allocations: 4 kB / 0.5872 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.4677, allocations: 4.125 kB / 0.5872 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/0.4685, allocations: 151.8 kB / 0.5873 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.4695, allocations: 1.358 MB / 0.5887 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.4698, allocations: 12.02 kB / 0.5887 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.4698, allocations: 16 kB / 0.5887 GB, free: 10.39 MB / 410.7 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 (49): * Single equations (assignments): 48 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001753/0.47, allocations: 153.9 kB / 0.5888 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.4701, allocations: 43.53 kB / 0.5889 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006017/0.4707, allocations: 335.3 kB / 0.5892 GB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.4707, allocations: 4 kB / 0.5892 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.4707, allocations: 7.953 kB / 0.5892 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.4707, allocations: 3.984 kB / 0.5892 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.4719, allocations: 0.81 MB / 0.59 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4719, allocations: 0 / 0.59 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004722/0.4724, allocations: 83.95 kB / 0.5901 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.4724, allocations: 7.938 kB / 0.5901 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.4724, allocations: 7.953 kB / 0.5901 GB, free: 8.879 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4724, allocations: 4 kB / 0.5901 GB, free: 8.875 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4724, allocations: 2.625 kB / 0.5901 GB, free: 8.875 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007467/0.4732, allocations: 0.5356 MB / 0.5906 GB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.4733, allocations: 140.5 kB / 0.5908 GB, free: 8.168 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.324e-05/0.4734, allocations: 8 kB / 0.5908 GB, free: 8.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.4737, allocations: 15.94 kB / 0.5908 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.4737, allocations: 23.97 kB / 0.5908 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.4738, allocations: 12 kB / 0.5908 GB, free: 8.109 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002786/0.474, allocations: 267.2 kB / 0.5911 GB, free: 7.855 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.474, allocations: 0 / 0.5911 GB, free: 7.855 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003909/0.4744, allocations: 88 kB / 0.5911 GB, free: 7.77 MB / 410.7 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 (38): * Single equations (assignments): 38 * 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.001086/0.4755, allocations: 1.092 MB / 0.5922 GB, free: 6.648 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006146/0.4762, allocations: 296.6 kB / 0.5925 GB, free: 6.363 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4762, allocations: 4.25 kB / 0.5925 GB, free: 6.359 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.4764, allocations: 139.8 kB / 0.5926 GB, free: 6.223 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.4769, allocations: 77.72 kB / 0.5927 GB, free: 6.148 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/0.4812, allocations: 3.394 MB / 0.596 GB, free: 2.711 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.4816, allocations: 0.8391 MB / 0.5968 GB, free: 1.844 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000202/0.4818, allocations: 51.38 kB / 0.5969 GB, free: 1.793 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002342/0.482, allocations: 155.4 kB / 0.597 GB, free: 1.641 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4821, allocations: 0 / 0.597 GB, free: 1.641 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.5041, allocations: 7.837 MB / 0.6047 GB, free: 9.879 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.5044, allocations: 180.4 kB / 0.6049 GB, free: 9.633 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.717, allocations: 0.7031 kB / 0.6049 GB, free: 9.633 MB / 426.7 MB (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/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)