Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.0009735/0.0009735, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.398/1.398, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008294/0.0008295, allocations: 74.72 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.594e-05/3.637e-05, allocations: 7.984 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.0933, allocations: 47.57 MB / 370.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.4773, allocations: 167 MB / 0.5246 GB, free: 7.625 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.4776, allocations: 99.94 kB / 0.5247 GB, free: 7.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.375/1.852, allocations: 393.9 MB / 0.9094 GB, free: 45.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.384e-06/1.852, allocations: 0 / 0.9094 GB, free: 45.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009466/1.853, allocations: 262 kB / 0.9096 GB, free: 45.31 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03488/1.888, allocations: 10.28 MB / 0.9197 GB, free: 41.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/1.888, allocations: 10.44 kB / 0.9197 GB, free: 41.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006776/1.895, allocations: 1.775 MB / 0.9214 GB, free: 41.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02395/1.919, allocations: 4.388 MB / 0.9257 GB, free: 41.22 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02162/1.941, allocations: 8.862 MB / 0.9343 GB, free: 40.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008428/1.942, allocations: 0.8344 MB / 0.9352 GB, free: 40.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004001/1.946, allocations: 1.076 MB / 0.9362 GB, free: 40.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.043/1.989, allocations: 17.25 MB / 0.9531 GB, free: 38.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005761/1.989, allocations: 23.44 kB / 0.9531 GB, free: 38.65 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004297/1.994, allocations: 470.5 kB / 0.9535 GB, free: 38.65 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006398/1.994, allocations: 0.6905 MB / 0.9542 GB, free: 38.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02855/2.023, allocations: 14.97 MB / 0.9688 GB, free: 33.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1041/2.127, allocations: 58.15 MB / 1.026 GB, free: 8.684 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3274/2.454, allocations: 17.18 MB / 1.042 GB, free: 52.37 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01078/2.465, allocations: 6.182 MB / 1.048 GB, free: 52.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03536/2.501, allocations: 18.92 MB / 1.067 GB, free: 51.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.852e-05/2.501, allocations: 94.97 kB / 1.067 GB, free: 51.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=626): time 8.305e-06/2.501, allocations: 0 / 1.067 GB, free: 51.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=659): time 0.04044/2.541, allocations: 23.46 MB / 1.09 GB, free: 47.67 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003151/2.544, allocations: 2.933 MB / 1.093 GB, free: 46.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006667/2.551, allocations: 3.889 MB / 1.097 GB, free: 45.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001473/2.553, allocations: 117.8 kB / 1.097 GB, free: 45.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002556/2.555, allocations: 4.608 MB / 1.101 GB, free: 43.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00284/2.558, allocations: 2.2 MB / 1.103 GB, free: 42.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005436/2.559, allocations: 142.2 kB / 1.103 GB, free: 42.14 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004713/2.559, allocations: 0.6222 MB / 1.104 GB, free: 41.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005822/2.565, allocations: 4.365 MB / 1.108 GB, free: 41.27 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006937/2.572, allocations: 6.392 MB / 1.115 GB, free: 37.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007529/2.579, allocations: 5.502 MB / 1.12 GB, free: 34.83 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.572e-05/2.58, allocations: 14.91 kB / 1.12 GB, free: 34.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02/2.6, allocations: 13.1 MB / 1.133 GB, free: 29.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-05/2.6, allocations: 30.59 kB / 1.133 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/2.6, allocations: 69.64 kB / 1.133 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004114/2.604, allocations: 2.389 MB / 1.135 GB, free: 29.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006135/2.61, allocations: 1.525 MB / 1.137 GB, free: 29.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00891/2.619, allocations: 10.4 MB / 1.147 GB, free: 21.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007289/2.626, allocations: 0.5386 MB / 1.147 GB, free: 21.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/2.628, allocations: 339 kB / 1.148 GB, free: 21.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (792): * Single equations (assignments): 723 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.00219/2.63, allocations: 0.5095 MB / 1.148 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001416/2.632, allocations: 0.552 MB / 1.149 GB, free: 20.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/2.649, allocations: 11.71 MB / 1.16 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.014/2.663, allocations: 10.38 MB / 1.17 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/2.663, allocations: 3.938 kB / 1.17 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.449e-05/2.663, allocations: 31.64 kB / 1.17 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05851/2.722, allocations: 30.53 MB / 1.2 GB, free: 3.766 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.002e-05/2.722, allocations: 7.609 kB / 1.2 GB, free: 3.762 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003999/2.726, allocations: 0.8835 MB / 1.201 GB, free: 3.094 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00529/2.731, allocations: 2.658 MB / 1.204 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001016/2.732, allocations: 147 kB / 1.204 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01756/2.75, allocations: 15.93 MB / 1.219 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3082/3.058, allocations: 2.82 MB / 1.222 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03364/3.092, allocations: 18.36 MB / 1.24 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0049/3.097, allocations: 1.574 MB / 1.242 GB, free: 80.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002344/3.099, allocations: 104.3 kB / 1.242 GB, free: 80.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005188/3.104, allocations: 346.5 kB / 1.242 GB, free: 80.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002009/3.106, allocations: 0.5056 MB / 1.242 GB, free: 80.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001002/3.107, allocations: 185.6 kB / 1.243 GB, free: 80.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005525/3.113, allocations: 2.881 MB / 1.245 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.21e-07/3.113, allocations: 0 / 1.245 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01039/3.123, allocations: 2.099 MB / 1.247 GB, free: 80.77 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (461): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {5 12,6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.03153/3.155, allocations: 20.51 MB / 1.268 GB, free: 77.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.019/3.174, allocations: 10.89 MB / 1.278 GB, free: 76.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/3.174, allocations: 1.406 kB / 1.278 GB, free: 76.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01064/3.185, allocations: 5.891 MB / 1.284 GB, free: 76.25 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007176/3.192, allocations: 1.075 MB / 1.285 GB, free: 76.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05635/3.248, allocations: 22.06 MB / 1.307 GB, free: 68.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01352/3.262, allocations: 7.009 MB / 1.313 GB, free: 66.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007549/3.269, allocations: 1.708 MB / 1.315 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008683/3.278, allocations: 4.153 MB / 1.319 GB, free: 63.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.923e-06/3.278, allocations: 0 / 1.319 GB, free: 63.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5166/3.795, allocations: 182.5 MB / 1.497 GB, free: 73.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/3.795, allocations: 247.1 kB / 1.498 GB, free: 73.15 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.219/10.01, allocations: 3.844 kB / 1.498 GB, free: 73.15 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)