Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.3 MB / 235.5 MB, free: 2.867 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008445/0.0008446, allocations: 98.52 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.701e-05, allocations: 0 / 343.9 MB, free: 4.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09685/0.09689, allocations: 50.41 MB / 394.3 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3405/0.4374, allocations: 109 MB / 0.4916 GB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.4378, allocations: 83.95 kB / 0.4916 GB, free: 10.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1294/0.5672, allocations: 50.11 MB / 0.5406 GB, free: 7.883 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5672, allocations: 0 / 0.5406 GB, free: 7.883 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001914/0.5674, allocations: 59.94 kB / 0.5406 GB, free: 7.824 MB / 426.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.005191/0.5726, allocations: 2.366 MB / 0.5429 GB, free: 5.402 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.5727, allocations: 12.03 kB / 0.543 GB, free: 5.391 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000673/0.5734, allocations: 332.8 kB / 0.5433 GB, free: 5.055 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009296/0.5743, allocations: 320.5 kB / 0.5436 GB, free: 4.738 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/0.5779, allocations: 1.695 MB / 0.5452 GB, free: 2.984 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.5781, allocations: 164.4 kB / 0.5454 GB, free: 2.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000413/0.5785, allocations: 220 kB / 0.5456 GB, free: 2.605 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2398/0.8183, allocations: 2.811 MB / 0.5483 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.013e-05/0.8184, allocations: 6.406 kB / 0.5483 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002707/0.8187, allocations: 94.84 kB / 0.5484 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/0.8189, allocations: 104.9 kB / 0.5485 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004315/0.8232, allocations: 2.203 MB / 0.5507 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.8396, allocations: 9.141 MB / 0.5596 GB, free: 98.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002178/0.8418, allocations: 1.698 MB / 0.5613 GB, free: 98.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.843, allocations: 0.8056 MB / 0.5621 GB, free: 98.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000322/0.8433, allocations: 221.8 kB / 0.5623 GB, free: 98.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.8434, allocations: 43.27 kB / 0.5623 GB, free: 98.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 4.559e-06/0.8434, allocations: 0 / 0.5623 GB, free: 98.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01522/0.8586, allocations: 6.403 MB / 0.5686 GB, free: 97.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.8587, allocations: 69.33 kB / 0.5686 GB, free: 97.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.8611, allocations: 1.327 MB / 0.5699 GB, free: 97.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.8613, allocations: 49.8 kB / 0.57 GB, free: 97.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.8619, allocations: 1.105 MB / 0.5711 GB, free: 96.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.8622, allocations: 462.1 kB / 0.5715 GB, free: 96.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.61e-05/0.8623, allocations: 30.81 kB / 0.5715 GB, free: 96.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.223e-05/0.8624, allocations: 368.7 kB / 0.5719 GB, free: 95.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.8635, allocations: 0.7213 MB / 0.5726 GB, free: 95.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.8648, allocations: 1.137 MB / 0.5737 GB, free: 94.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.8658, allocations: 0.918 MB / 0.5746 GB, free: 94.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.8659, allocations: 3.969 kB / 0.5746 GB, free: 94.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003779/0.8696, allocations: 2.608 MB / 0.5771 GB, free: 93.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.8697, allocations: 11.75 kB / 0.5772 GB, free: 93.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.8697, allocations: 11.78 kB / 0.5772 GB, free: 93.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.871, allocations: 0.5889 MB / 0.5777 GB, free: 93.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.8722, allocations: 366.1 kB / 0.5781 GB, free: 93.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006312/0.8785, allocations: 6.694 MB / 0.5846 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.8803, allocations: 116.5 kB / 0.5847 GB, free: 89.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.8805, allocations: 69.73 kB / 0.5848 GB, free: 89.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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.0002941/0.8808, allocations: 192.8 kB / 0.585 GB, free: 89.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.8811, allocations: 178.9 kB / 0.5852 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003671/0.8847, allocations: 2.351 MB / 0.5875 GB, free: 88.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.8848, allocations: 14.84 kB / 0.5875 GB, free: 88.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.8848, allocations: 5.312 kB / 0.5875 GB, free: 88.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.8848, allocations: 6.422 kB / 0.5875 GB, free: 88.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007513/0.8923, allocations: 4.942 MB / 0.5923 GB, free: 86.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.8923, allocations: 5.906 kB / 0.5923 GB, free: 86.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000844/0.8932, allocations: 217.7 kB / 0.5925 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.8947, allocations: 0.6432 MB / 0.5931 GB, free: 85.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.655e-05/0.8948, allocations: 33.42 kB / 0.5932 GB, free: 85.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007395/0.9022, allocations: 8.391 MB / 0.6014 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.9022, allocations: 3.062 kB / 0.6014 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004539/0.9068, allocations: 3.571 MB / 0.6049 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008432/0.9077, allocations: 415.7 kB / 0.6053 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/0.9079, allocations: 35.36 kB / 0.6053 GB, free: 78.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008801/0.9088, allocations: 100.2 kB / 0.6054 GB, free: 78.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/0.909, allocations: 109.8 kB / 0.6055 GB, free: 78.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.169e-05/0.9091, allocations: 38.33 kB / 0.6055 GB, free: 78.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.9104, allocations: 1.023 MB / 0.6065 GB, free: 77.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9104, allocations: 0 / 0.6065 GB, free: 77.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001834/0.9122, allocations: 0.551 MB / 0.6071 GB, free: 77.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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.004742/0.917, allocations: 5.161 MB / 0.6121 GB, free: 74.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.9201, allocations: 2.33 MB / 0.6144 GB, free: 73.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.9201, allocations: 3.75 kB / 0.6144 GB, free: 73.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.9221, allocations: 1.505 MB / 0.6159 GB, free: 72.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.9241, allocations: 434.7 kB / 0.6163 GB, free: 72.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006831/0.931, allocations: 4.478 MB / 0.6206 GB, free: 70.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.9323, allocations: 1.933 MB / 0.6225 GB, free: 68.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001344/0.9336, allocations: 384 kB / 0.6229 GB, free: 68.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.9347, allocations: 0.8777 MB / 0.6238 GB, free: 67.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.813e-06/0.9347, allocations: 0 / 0.6238 GB, free: 67.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0676/1.002, allocations: 48.24 MB / 0.6709 GB, free: 26.22 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/1.003, allocations: 199 kB / 0.671 GB, free: 26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.195/4.198, allocations: 0 / 0.671 GB, free: 26 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat