Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",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.001273/0.001273, allocations: 178.4 kB / 8.698 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.518/1.518, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0008322/0.0008322, allocations: 76.14 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.706e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09298, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3535/0.4465, allocations: 108.3 MB / 471.5 MB, free: 3.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4469, allocations: 90.91 kB / 471.6 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1352/0.5821, allocations: 49.29 MB / 0.5087 GB, free: 7.512 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.5821, allocations: 0 / 0.5087 GB, free: 7.512 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000209/0.5823, allocations: 63.94 kB / 0.5087 GB, free: 7.449 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006077/0.5884, allocations: 2.357 MB / 0.511 GB, free: 5.035 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.5885, allocations: 12.03 kB / 0.5111 GB, free: 5.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.5897, allocations: 316.5 kB / 0.5114 GB, free: 4.711 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003304/0.593, allocations: 1.684 MB / 0.513 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.263e-05/0.5931, allocations: 75.98 kB / 0.5131 GB, free: 2.895 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002926/0.5934, allocations: 143.8 kB / 0.5132 GB, free: 2.754 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003675/0.5971, allocations: 2.079 MB / 0.5152 GB, free: 0.668 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004103/0.6012, allocations: 2.508 MB / 0.5177 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.02e-05/0.6013, allocations: 4 kB / 0.5177 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.6015, allocations: 0 / 0.5177 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.6016, allocations: 108.3 kB / 0.5178 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/0.6162, allocations: 8.703 MB / 0.5263 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/0.6185, allocations: 1.674 MB / 0.5279 GB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.6196, allocations: 0.7772 MB / 0.5287 GB, free: 2.371 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003607/0.62, allocations: 215.5 kB / 0.5289 GB, free: 2.125 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.62, allocations: 47.88 kB / 0.5289 GB, free: 2.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 3.296e-06/0.6201, allocations: 0 / 0.5289 GB, free: 2.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.232/0.8521, allocations: 4.912 MB / 0.5337 GB, free: 102.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.8522, allocations: 70.36 kB / 0.5338 GB, free: 102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.8542, allocations: 1.111 MB / 0.5349 GB, free: 101.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.8543, allocations: 28.83 kB / 0.5349 GB, free: 101.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007484/0.8551, allocations: 1.1 MB / 0.536 GB, free: 101.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003516/0.8554, allocations: 455.2 kB / 0.5364 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.8555, allocations: 0 / 0.5364 GB, free: 101.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.8556, allocations: 365.5 kB / 0.5368 GB, free: 100.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.8567, allocations: 0.6938 MB / 0.5374 GB, free: 100.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.8579, allocations: 1.101 MB / 0.5385 GB, free: 100.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.8592, allocations: 0.8841 MB / 0.5394 GB, free: 100.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.8592, allocations: 4.469 kB / 0.5394 GB, free: 100.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004181/0.8634, allocations: 2.436 MB / 0.5418 GB, free: 100.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.8635, allocations: 10.47 kB / 0.5418 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.8635, allocations: 14.59 kB / 0.5418 GB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.8649, allocations: 0.5791 MB / 0.5424 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.8663, allocations: 365.5 kB / 0.5427 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007175/0.8735, allocations: 6.404 MB / 0.549 GB, free: 97.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.8751, allocations: 84.47 kB / 0.549 GB, free: 97.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.8753, allocations: 63.88 kB / 0.5491 GB, free: 97.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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: 2 * 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 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002964/0.8756, allocations: 151.2 kB / 0.5492 GB, free: 97.57 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003302/0.8789, allocations: 2.067 MB / 0.5513 GB, free: 97.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/0.8792, allocations: 158 kB / 0.5514 GB, free: 97.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.8825, allocations: 2.22 MB / 0.5536 GB, free: 97.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.8825, allocations: 19.14 kB / 0.5536 GB, free: 97.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.8825, allocations: 3.25 kB / 0.5536 GB, free: 97.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.8825, allocations: 11.55 kB / 0.5536 GB, free: 97.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006704/0.8892, allocations: 4.527 MB / 0.558 GB, free: 96.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.8893, allocations: 0 / 0.558 GB, free: 96.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00088/0.8902, allocations: 220 kB / 0.5582 GB, free: 96.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.8916, allocations: 0.6351 MB / 0.5589 GB, free: 96.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.711e-05/0.8917, allocations: 22.05 kB / 0.5589 GB, free: 96.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007332/0.8991, allocations: 8.066 MB / 0.5668 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.8991, allocations: 7.406 kB / 0.5668 GB, free: 91.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004801/0.9039, allocations: 3.438 MB / 0.5701 GB, free: 89.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009121/0.9049, allocations: 397.5 kB / 0.5705 GB, free: 89.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.9051, allocations: 13.23 kB / 0.5705 GB, free: 89.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000879/0.906, allocations: 85.36 kB / 0.5706 GB, free: 89.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.9062, allocations: 106.6 kB / 0.5707 GB, free: 89.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.9063, allocations: 43.5 kB / 0.5707 GB, free: 89.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.9074, allocations: 0.8344 MB / 0.5716 GB, free: 88.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9074, allocations: 0 / 0.5716 GB, free: 88.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002044/0.9094, allocations: 479.9 kB / 0.572 GB, free: 88.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 101 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005103/0.9145, allocations: 4.955 MB / 0.5769 GB, free: 86.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003321/0.9179, allocations: 2.228 MB / 0.579 GB, free: 85.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.9179, allocations: 0 / 0.579 GB, free: 85.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.9199, allocations: 1.448 MB / 0.5804 GB, free: 84.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.9221, allocations: 349.2 kB / 0.5808 GB, free: 84.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007158/0.9293, allocations: 4.345 MB / 0.585 GB, free: 82.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.9307, allocations: 1.934 MB / 0.5869 GB, free: 81.63 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001234/0.932, allocations: 374.5 kB / 0.5873 GB, free: 81.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009367/0.9329, allocations: 0.8805 MB / 0.5881 GB, free: 80.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.9329, allocations: 0 / 0.5881 GB, free: 80.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07069/1.004, allocations: 40.8 MB / 0.628 GB, free: 53.12 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/1.004, allocations: 174.4 kB / 0.6281 GB, free: 52.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.137/4.141, allocations: 3.906 kB / 0.6281 GB, free: 52.93 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat