Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001294/0.001295, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008863/0.0008864, allocations: 84.41 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4284/0.4284, allocations: 48.77 MB / 358.8 MB, free: 53.18 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.704e-05, allocations: 0 / 425.4 MB, free: 8.137 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4742, allocations: 87.1 MB / 0.5593 GB, free: 13.95 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4745, allocations: 71.97 kB / 0.5594 GB, free: 13.88 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01973/0.4942, allocations: 6.863 MB / 0.5661 GB, free: 7.078 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4943, allocations: 0 / 0.5661 GB, free: 7.078 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.4943, allocations: 8 kB / 0.5661 GB, free: 7.07 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009039/0.4952, allocations: 0.6252 MB / 0.5667 GB, free: 6.402 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.4953, allocations: 8.031 kB / 0.5667 GB, free: 6.395 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/0.4954, allocations: 55.34 kB / 0.5668 GB, free: 6.34 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.4958, allocations: 343.3 kB / 0.5671 GB, free: 5.973 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.4959, allocations: 11.98 kB / 0.5671 GB, free: 5.961 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.4959, allocations: 20 kB / 0.5671 GB, free: 5.941 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003059/0.4962, allocations: 172.5 kB / 0.5673 GB, free: 5.777 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.4966, allocations: 245.8 kB / 0.5675 GB, free: 5.523 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4967, allocations: 0 / 0.5675 GB, free: 5.523 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.4967, allocations: 4 kB / 0.5675 GB, free: 5.52 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4967, allocations: 7.953 kB / 0.5675 GB, free: 5.512 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.4982, allocations: 1.067 MB / 0.5686 GB, free: 4.391 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.4986, allocations: 221 kB / 0.5688 GB, free: 4.164 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.4987, allocations: 115.6 kB / 0.5689 GB, free: 4.051 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.4988, allocations: 3.984 kB / 0.5689 GB, free: 4.047 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.4988, allocations: 34.56 kB / 0.5689 GB, free: 4.004 MB / 395.1 MB Notification: Performance of pre-optimization done (n=32): time 1.392e-06/0.4988, allocations: 0 / 0.5689 GB, free: 4.004 MB / 395.1 MB Notification: Performance of matching and sorting (n=34): time 0.001131/0.4999, allocations: 0.6826 MB / 0.5696 GB, free: 3.266 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.5, allocations: 55.41 kB / 0.5697 GB, free: 3.199 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.5003, allocations: 282.4 kB / 0.5699 GB, free: 2.918 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.5003, allocations: 25.7 kB / 0.57 GB, free: 2.887 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.5004, allocations: 208.6 kB / 0.5702 GB, free: 2.676 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.5005, allocations: 122.2 kB / 0.5703 GB, free: 2.555 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.5005, allocations: 0 / 0.5703 GB, free: 2.555 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5007, allocations: 354.6 kB / 0.5706 GB, free: 2.203 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.5008, allocations: 76.75 kB / 0.5707 GB, free: 2.125 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.501, allocations: 121.4 kB / 0.5708 GB, free: 1.992 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.5011, allocations: 87.91 kB / 0.5709 GB, free: 1.906 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.5011, allocations: 0 / 0.5709 GB, free: 1.906 MB / 395.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007864/0.5019, allocations: 389.1 kB / 0.5713 GB, free: 1.516 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.502, allocations: 4 kB / 0.5713 GB, free: 1.512 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.502, allocations: 0 / 0.5713 GB, free: 1.512 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006074/0.5026, allocations: 136.9 kB / 0.5714 GB, free: 1.375 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.503, allocations: 83.88 kB / 0.5715 GB, free: 1.293 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.5044, allocations: 1.973 MB / 0.5734 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.5047, allocations: 4.031 kB / 0.5734 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.5047, allocations: 12 kB / 0.5734 GB, free: 15.17 MB / 411.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 32 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 9.325e-05/0.5048, allocations: 113.2 kB / 0.5735 GB, free: 15.05 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003613/0.5052, allocations: 237.4 kB / 0.5737 GB, free: 14.81 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.169e-05/0.5052, allocations: 47.47 kB / 0.5738 GB, free: 14.77 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004396/0.5057, allocations: 272.8 kB / 0.574 GB, free: 14.5 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.5057, allocations: 4 kB / 0.5741 GB, free: 14.49 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.5057, allocations: 5.125 kB / 0.5741 GB, free: 14.49 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.5057, allocations: 3.984 kB / 0.5741 GB, free: 14.48 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.5066, allocations: 0.6747 MB / 0.5747 GB, free: 13.77 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5066, allocations: 0 / 0.5747 GB, free: 13.77 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/0.507, allocations: 83.89 kB / 0.5748 GB, free: 13.68 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.507, allocations: 224 / 0.5748 GB, free: 13.68 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.5071, allocations: 9.25 kB / 0.5748 GB, free: 13.68 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.5071, allocations: 7.938 kB / 0.5748 GB, free: 13.67 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5071, allocations: 0 / 0.5748 GB, free: 13.67 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005433/0.5076, allocations: 471.4 kB / 0.5753 GB, free: 13.19 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.5078, allocations: 136.6 kB / 0.5754 GB, free: 13.04 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.5078, allocations: 4 kB / 0.5754 GB, free: 13.04 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.5081, allocations: 11.27 kB / 0.5754 GB, free: 13.03 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.5081, allocations: 23.97 kB / 0.5754 GB, free: 13 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.5082, allocations: 8 kB / 0.5754 GB, free: 13 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.5084, allocations: 224.6 kB / 0.5757 GB, free: 12.78 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5084, allocations: 0 / 0.5757 GB, free: 12.78 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.5088, allocations: 68 kB / 0.5757 GB, free: 12.71 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.0008968/0.5097, allocations: 1.014 MB / 0.5767 GB, free: 11.68 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0006667/0.5103, allocations: 269.5 kB / 0.577 GB, free: 11.41 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5104, allocations: 0 / 0.577 GB, free: 11.41 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.5105, allocations: 116.5 kB / 0.5771 GB, free: 11.3 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.511, allocations: 62.48 kB / 0.5771 GB, free: 11.24 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.5127, allocations: 0.9482 MB / 0.5781 GB, free: 10.27 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.5131, allocations: 0.8228 MB / 0.5789 GB, free: 9.418 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.5132, allocations: 47.25 kB / 0.5789 GB, free: 9.375 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.5134, allocations: 143.4 kB / 0.579 GB, free: 9.234 MB / 411.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5134, allocations: 0 / 0.579 GB, free: 9.234 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.54, allocations: 6.911 MB / 0.5858 GB, free: 2.359 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.5403, allocations: 139 kB / 0.5859 GB, free: 2.168 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/2.734, allocations: 4.031 kB / 0.5859 GB, free: 2.164 MB / 411.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)