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.001119/0.001119, allocations: 172.8 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.415/1.415, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.00087/0.00087, allocations: 90.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.564e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.08952, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4174, allocations: 108.7 MB / 478.9 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4177, allocations: 89.81 kB / 478.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1348/0.5525, allocations: 49.96 MB / 0.5165 GB, free: 15.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5526, allocations: 4 kB / 0.5165 GB, free: 15.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001659/0.5527, allocations: 59.94 kB / 0.5166 GB, free: 15.58 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004636/0.5574, allocations: 2.361 MB / 0.5189 GB, free: 13.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5574, allocations: 8.031 kB / 0.5189 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004252/0.5579, allocations: 328.8 kB / 0.5192 GB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008068/0.5587, allocations: 320.5 kB / 0.5195 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.5621, allocations: 1.691 MB / 0.5212 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.5623, allocations: 164.4 kB / 0.5213 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/0.5627, allocations: 231.9 kB / 0.5215 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004762/0.5674, allocations: 2.818 MB / 0.5243 GB, free: 7.402 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.77e-05/0.5675, allocations: 11.94 kB / 0.5243 GB, free: 7.391 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.5678, allocations: 92 kB / 0.5244 GB, free: 7.301 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.5679, allocations: 104.4 kB / 0.5245 GB, free: 7.195 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003986/0.5719, allocations: 2.204 MB / 0.5266 GB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2153/0.7872, allocations: 9.125 MB / 0.5355 GB, free: 96.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.7896, allocations: 1.703 MB / 0.5372 GB, free: 95.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.7909, allocations: 0.8049 MB / 0.538 GB, free: 95.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003156/0.7913, allocations: 217.2 kB / 0.5382 GB, free: 95.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.7913, allocations: 54.8 kB / 0.5383 GB, free: 95.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.396e-06/0.7913, allocations: 0 / 0.5383 GB, free: 95.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.01578/0.8071, allocations: 6.362 MB / 0.5445 GB, free: 94.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.8072, allocations: 67.91 kB / 0.5445 GB, free: 94.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/0.8103, allocations: 1.33 MB / 0.5458 GB, free: 94.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.8105, allocations: 50.42 kB / 0.5459 GB, free: 94.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008735/0.8113, allocations: 1.103 MB / 0.547 GB, free: 94.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004519/0.8118, allocations: 457.8 kB / 0.5474 GB, free: 94.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.8119, allocations: 32.38 kB / 0.5474 GB, free: 94.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.8121, allocations: 368.1 kB / 0.5478 GB, free: 93.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.8133, allocations: 0.7239 MB / 0.5485 GB, free: 93.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.8147, allocations: 1.132 MB / 0.5496 GB, free: 93.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.8161, allocations: 0.9102 MB / 0.5505 GB, free: 93.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.989e-05/0.8161, allocations: 4.469 kB / 0.5505 GB, free: 93.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004429/0.8205, allocations: 2.612 MB / 0.553 GB, free: 93.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.8206, allocations: 10.62 kB / 0.553 GB, free: 93.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.391e-05/0.8206, allocations: 11.03 kB / 0.5531 GB, free: 93.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.8219, allocations: 0.5896 MB / 0.5536 GB, free: 93.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.8231, allocations: 365 kB / 0.554 GB, free: 93.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006478/0.8296, allocations: 6.67 MB / 0.5605 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.8314, allocations: 122.9 kB / 0.5606 GB, free: 90.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.8317, allocations: 68.95 kB / 0.5607 GB, free: 90.35 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 (169): * Single equations (assignments): 166 * 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.0003356/0.832, allocations: 198.2 kB / 0.5609 GB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004464/0.8325, allocations: 176.8 kB / 0.561 GB, free: 90.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/0.8362, allocations: 2.331 MB / 0.5633 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.8363, allocations: 12.75 kB / 0.5633 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.8363, allocations: 9.656 kB / 0.5633 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.8363, allocations: 7.688 kB / 0.5633 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008326/0.8446, allocations: 4.908 MB / 0.5681 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.158e-06/0.8447, allocations: 5.344 kB / 0.5681 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.8457, allocations: 217.4 kB / 0.5683 GB, free: 87.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.8476, allocations: 0.6425 MB / 0.569 GB, free: 87.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.8478, allocations: 34.06 kB / 0.569 GB, free: 87.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007926/0.8557, allocations: 8.382 MB / 0.5772 GB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.8557, allocations: 6.781 kB / 0.5772 GB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004779/0.8605, allocations: 3.54 MB / 0.5806 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.8617, allocations: 423.4 kB / 0.5811 GB, free: 79.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005184/0.8623, allocations: 27.22 kB / 0.5811 GB, free: 79.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8635, allocations: 103.4 kB / 0.5812 GB, free: 79.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/0.8638, allocations: 100.6 kB / 0.5813 GB, free: 79.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.66e-05/0.8639, allocations: 37.89 kB / 0.5813 GB, free: 79.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001853/0.8657, allocations: 1.015 MB / 0.5823 GB, free: 79 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8657, allocations: 3.844 kB / 0.5823 GB, free: 79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002349/0.8681, allocations: 0.5516 MB / 0.5828 GB, free: 78.94 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 (103): * Single equations (assignments): 100 * 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.005728/0.8738, allocations: 5.094 MB / 0.5878 GB, free: 76.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003431/0.8773, allocations: 2.314 MB / 0.5901 GB, free: 75.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8773, allocations: 2.625 kB / 0.5901 GB, free: 75.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.8794, allocations: 1.508 MB / 0.5916 GB, free: 74.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/0.8817, allocations: 443.2 kB / 0.592 GB, free: 74.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008347/0.89, allocations: 4.468 MB / 0.5963 GB, free: 72.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/0.8915, allocations: 1.926 MB / 0.5982 GB, free: 71.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001321/0.8929, allocations: 379.2 kB / 0.5986 GB, free: 71.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/0.8939, allocations: 0.8852 MB / 0.5994 GB, free: 70.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8939, allocations: 0 / 0.5994 GB, free: 70.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06681/0.9608, allocations: 48.19 MB / 0.6465 GB, free: 30.56 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.961, allocations: 211.6 kB / 0.6467 GB, free: 30.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.204/4.165, allocations: 7.906 kB / 0.6467 GB, free: 30.32 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