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.001235/0.001235, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.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.000969/0.0009689, allocations: 96.08 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4294/0.4294, allocations: 48.77 MB / 367.9 MB, free: 47.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002899, allocations: 12 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1278, allocations: 60.24 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3869/0.5148, allocations: 87.85 MB / 0.5731 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.5151, allocations: 74.62 kB / 0.5732 GB, free: 10.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01732/0.5324, allocations: 6.923 MB / 0.5799 GB, free: 3.797 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5325, allocations: 0.5625 kB / 0.5799 GB, free: 3.797 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.5325, allocations: 8 kB / 0.5799 GB, free: 3.789 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001001/0.5335, allocations: 0.6999 MB / 0.5806 GB, free: 3.043 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.5336, allocations: 8.031 kB / 0.5806 GB, free: 3.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.837e-05/0.5336, allocations: 66.53 kB / 0.5807 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.5337, allocations: 55.34 kB / 0.5807 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.5341, allocations: 355.8 kB / 0.5811 GB, free: 2.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.5342, allocations: 20.66 kB / 0.5811 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.5342, allocations: 32 kB / 0.5811 GB, free: 2.469 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.5346, allocations: 302.9 kB / 0.5814 GB, free: 2.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.5347, allocations: 3.906 kB / 0.5814 GB, free: 2.156 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.5347, allocations: 15.98 kB / 0.5814 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.5347, allocations: 7.953 kB / 0.5814 GB, free: 2.133 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.5351, allocations: 210.1 kB / 0.5816 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.5364, allocations: 1.123 MB / 0.5827 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.5368, allocations: 256 kB / 0.583 GB, free: 488 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.5368, allocations: 3.938 kB / 0.583 GB, free: 484 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.5368, allocations: 38.56 kB / 0.583 GB, free: 436 kB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 2.033e-06/0.5368, allocations: 0 / 0.583 GB, free: 436 kB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001765/0.5386, allocations: 0.9612 MB / 0.584 GB, free: 15.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.5387, allocations: 59.41 kB / 0.584 GB, free: 15.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.539, allocations: 316.8 kB / 0.5843 GB, free: 15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.5391, allocations: 33.7 kB / 0.5843 GB, free: 14.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.5392, allocations: 204.4 kB / 0.5845 GB, free: 14.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.307e-05/0.5393, allocations: 125.6 kB / 0.5847 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.737e-05/0.5393, allocations: 8 kB / 0.5847 GB, free: 14.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5395, allocations: 346.8 kB / 0.585 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.5397, allocations: 92.7 kB / 0.5851 GB, free: 14.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.5399, allocations: 149.9 kB / 0.5852 GB, free: 14.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.5401, allocations: 100 kB / 0.5853 GB, free: 13.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5401, allocations: 4 kB / 0.5853 GB, free: 13.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009473/0.5411, allocations: 441 kB / 0.5857 GB, free: 13.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.5411, allocations: 4 kB / 0.5858 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.5411, allocations: 7.938 kB / 0.5858 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007428/0.5419, allocations: 149.2 kB / 0.5859 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.5423, allocations: 83.89 kB / 0.586 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.544, allocations: 2.02 MB / 0.588 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.5443, allocations: 16.31 kB / 0.588 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.5443, allocations: 8 kB / 0.588 GB, free: 11.05 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 (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 0.0001966/0.5445, allocations: 153.7 kB / 0.5881 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.5446, allocations: 39.53 kB / 0.5882 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005534/0.5452, allocations: 324.8 kB / 0.5885 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.5452, allocations: 8 kB / 0.5885 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.5452, allocations: 0 / 0.5885 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.5452, allocations: 3.984 kB / 0.5885 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.5463, allocations: 0.7718 MB / 0.5892 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.5464, allocations: 0 / 0.5892 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.5468, allocations: 79.91 kB / 0.5893 GB, free: 9.609 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.5468, allocations: 4 kB / 0.5893 GB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.5468, allocations: 11.98 kB / 0.5893 GB, free: 9.594 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.5468, allocations: 0 / 0.5893 GB, free: 9.594 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5469, allocations: 4 kB / 0.5893 GB, free: 9.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007222/0.5476, allocations: 0.511 MB / 0.5898 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.5477, allocations: 136.6 kB / 0.59 GB, free: 8.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.5478, allocations: 8 kB / 0.59 GB, free: 8.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.548, allocations: 11.98 kB / 0.59 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.5481, allocations: 23.97 kB / 0.59 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.5481, allocations: 8 kB / 0.59 GB, free: 8.859 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000259/0.5484, allocations: 255.1 kB / 0.5903 GB, free: 8.613 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5484, allocations: 0 / 0.5903 GB, free: 8.613 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003674/0.5488, allocations: 94.92 kB / 0.5903 GB, free: 8.523 MB / 410.7 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 () * Number of clocked 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.001078/0.5499, allocations: 1.06 MB / 0.5914 GB, free: 7.438 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007867/0.5507, allocations: 307.7 kB / 0.5917 GB, free: 7.141 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.5507, allocations: 0 / 0.5917 GB, free: 7.141 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.5509, allocations: 135.7 kB / 0.5918 GB, free: 7.008 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.5514, allocations: 68 kB / 0.5919 GB, free: 6.945 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004376/0.5558, allocations: 3.286 MB / 0.5951 GB, free: 3.609 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.5562, allocations: 0.8344 MB / 0.5959 GB, free: 2.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.5564, allocations: 40.83 kB / 0.5959 GB, free: 2.711 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.5567, allocations: 148.1 kB / 0.5961 GB, free: 2.566 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5567, allocations: 0 / 0.5961 GB, free: 2.566 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.5789, allocations: 7.686 MB / 0.6036 GB, free: 10.97 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.5792, allocations: 212.8 kB / 0.6038 GB, free: 10.72 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/2.688, allocations: 4.641 kB / 0.6038 GB, free: 10.72 MB / 426.7 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)