Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001406/0.001406, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007936/0.0007935, allocations: 96.09 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.832e-05/1.844e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3821/0.4864, allocations: 113.1 MB / 476.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.4868, allocations: 86.47 kB / 476.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4357/0.9225, allocations: 81.95 MB / 0.5452 GB, free: 91.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.9226, allocations: 1.031 kB / 0.5452 GB, free: 91.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002116/0.9228, allocations: 66.67 kB / 0.5453 GB, free: 91.53 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.006147/0.9289, allocations: 2.623 MB / 0.5478 GB, free: 90.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.929, allocations: 8.938 kB / 0.5478 GB, free: 90.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001743/0.9307, allocations: 421.2 kB / 0.5482 GB, free: 90.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003549/0.9343, allocations: 1.834 MB / 0.55 GB, free: 89.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.9344, allocations: 81.72 kB / 0.5501 GB, free: 89.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003257/0.9348, allocations: 152.6 kB / 0.5502 GB, free: 89.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003521/0.9383, allocations: 2.31 MB / 0.5525 GB, free: 89.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004063/0.9424, allocations: 2.781 MB / 0.5552 GB, free: 89.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.089e-05/0.9425, allocations: 14.47 kB / 0.5552 GB, free: 89.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/0.9427, allocations: 0 / 0.5552 GB, free: 89.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.9428, allocations: 113.2 kB / 0.5553 GB, free: 89.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01479/0.9576, allocations: 9.977 MB / 0.5651 GB, free: 86.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.9594, allocations: 1.73 MB / 0.5668 GB, free: 86.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008829/0.9603, allocations: 0.831 MB / 0.5676 GB, free: 86.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003141/0.9606, allocations: 224.6 kB / 0.5678 GB, free: 86.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.9606, allocations: 47.5 kB / 0.5678 GB, free: 86.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 3.437e-06/0.9606, allocations: 0 / 0.5678 GB, free: 86.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.009376/0.97, allocations: 5.427 MB / 0.5731 GB, free: 85.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.9701, allocations: 66.56 kB / 0.5732 GB, free: 85.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.9719, allocations: 1.366 MB / 0.5745 GB, free: 84.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.269e-05/0.972, allocations: 29.36 kB / 0.5746 GB, free: 84.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005802/0.9726, allocations: 1.249 MB / 0.5758 GB, free: 83.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.9729, allocations: 480.5 kB / 0.5762 GB, free: 83.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.234e-05/0.9729, allocations: 0 / 0.5762 GB, free: 83.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.9731, allocations: 374.8 kB / 0.5766 GB, free: 83.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008831/0.9739, allocations: 0.7821 MB / 0.5774 GB, free: 82.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.9751, allocations: 1.251 MB / 0.5786 GB, free: 81.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.9763, allocations: 0.9908 MB / 0.5796 GB, free: 81.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.9763, allocations: 3.562 kB / 0.5796 GB, free: 81.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003778/0.9801, allocations: 2.655 MB / 0.5822 GB, free: 80.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.9801, allocations: 13.88 kB / 0.5822 GB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/0.9802, allocations: 16.31 kB / 0.5822 GB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.9815, allocations: 0.5905 MB / 0.5828 GB, free: 80.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.9828, allocations: 411.1 kB / 0.5832 GB, free: 80.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005549/0.9884, allocations: 5.206 MB / 0.5882 GB, free: 77.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.9901, allocations: 98.25 kB / 0.5883 GB, free: 77.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.9902, allocations: 81.47 kB / 0.5884 GB, free: 77.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000279/0.9905, allocations: 143.9 kB / 0.5885 GB, free: 77.52 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003194/0.9937, allocations: 2.234 MB / 0.5907 GB, free: 76.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.994, allocations: 183.8 kB / 0.5909 GB, free: 76.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.9977, allocations: 2.387 MB / 0.5932 GB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.9978, allocations: 14.75 kB / 0.5932 GB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.9978, allocations: 3.219 kB / 0.5932 GB, free: 75.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.9978, allocations: 15.59 kB / 0.5933 GB, free: 75.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007655/1.005, allocations: 4.969 MB / 0.5981 GB, free: 73.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.006, allocations: 3.5 kB / 0.5981 GB, free: 73.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/1.007, allocations: 264.6 kB / 0.5984 GB, free: 73.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/1.008, allocations: 0.6343 MB / 0.599 GB, free: 73.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/1.008, allocations: 13.81 kB / 0.599 GB, free: 73.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007016/1.015, allocations: 6.883 MB / 0.6057 GB, free: 69.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.196e-06/1.015, allocations: 3.656 kB / 0.6057 GB, free: 69.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005187/1.02, allocations: 3.787 MB / 0.6094 GB, free: 66.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/1.022, allocations: 452.5 kB / 0.6099 GB, free: 65.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/1.022, allocations: 12 kB / 0.6099 GB, free: 65.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/1.023, allocations: 100.4 kB / 0.61 GB, free: 65.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/1.023, allocations: 121.7 kB / 0.6101 GB, free: 65.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/1.023, allocations: 47.89 kB / 0.6101 GB, free: 65.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001339/1.025, allocations: 1.03 MB / 0.6111 GB, free: 64.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.025, allocations: 0 / 0.6111 GB, free: 64.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001971/1.027, allocations: 0.5309 MB / 0.6117 GB, free: 64.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005115/1.032, allocations: 5.491 MB / 0.617 GB, free: 59.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003467/1.035, allocations: 2.388 MB / 0.6193 GB, free: 56.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/1.035, allocations: 1.312 kB / 0.6193 GB, free: 56.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/1.037, allocations: 1.52 MB / 0.6208 GB, free: 55.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/1.039, allocations: 311.5 kB / 0.6211 GB, free: 55.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008512/1.048, allocations: 4.706 MB / 0.6257 GB, free: 51.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/1.049, allocations: 2.074 MB / 0.6278 GB, free: 49.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00137/1.051, allocations: 403.4 kB / 0.6281 GB, free: 49.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/1.052, allocations: 0.9973 MB / 0.6291 GB, free: 48.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.052, allocations: 3.938 kB / 0.6291 GB, free: 48.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07022/1.122, allocations: 43.5 MB / 0.6716 GB, free: 8.906 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/1.122, allocations: 179.6 kB / 0.6718 GB, free: 8.711 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.151/4.273, allocations: 0 / 0.6718 GB, free: 8.711 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat