Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001539/0.001539, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 221.5 MB / 230.3 MB, free: 7.539 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.0009093/0.0009093, allocations: 90.8 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.136e-05/2.139e-05, allocations: 4 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4007/0.507, allocations: 125.5 MB / 0.501 GB, free: 1.203 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5073, allocations: 95.94 kB / 0.5011 GB, free: 1.109 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5317/1.039, allocations: 114.8 MB / 0.6132 GB, free: 91.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.039, allocations: 0 / 0.6132 GB, free: 91.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005331/1.04, allocations: 128.5 kB / 0.6134 GB, free: 91.25 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01775/1.057, allocations: 4.909 MB / 0.6181 GB, free: 88.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.021e-05/1.057, allocations: 7.312 kB / 0.6182 GB, free: 88.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007888/1.065, allocations: 0.9617 MB / 0.6191 GB, free: 87.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/1.079, allocations: 4.394 MB / 0.6234 GB, free: 83.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/1.08, allocations: 168 kB / 0.6235 GB, free: 83.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002804/1.082, allocations: 307.8 kB / 0.6238 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01626/1.099, allocations: 4.925 MB / 0.6286 GB, free: 78.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.021/1.12, allocations: 5.815 MB / 0.6343 GB, free: 72.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003477/1.12, allocations: 11.91 kB / 0.6343 GB, free: 72.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001953/1.122, allocations: 4 kB / 0.6343 GB, free: 72.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/1.122, allocations: 234.2 kB / 0.6346 GB, free: 72.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04056/1.163, allocations: 20.16 MB / 0.6542 GB, free: 51.58 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00642/1.169, allocations: 8.392 MB / 0.6624 GB, free: 42.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002641/1.172, allocations: 1.934 MB / 0.6643 GB, free: 40.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/1.182, allocations: 5.86 MB / 0.6701 GB, free: 34.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/1.182, allocations: 52.56 kB / 0.6701 GB, free: 34.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=212): time 6.463e-06/1.183, allocations: 0 / 0.6701 GB, free: 34.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.01585/1.198, allocations: 8.196 MB / 0.6781 GB, free: 26.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/1.198, allocations: 77.41 kB / 0.6782 GB, free: 25.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003326/1.202, allocations: 2.035 MB / 0.6802 GB, free: 23.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/1.202, allocations: 25.7 kB / 0.6802 GB, free: 23.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001108/1.203, allocations: 2.339 MB / 0.6825 GB, free: 21.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006071/1.204, allocations: 0.7814 MB / 0.6832 GB, free: 20.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/1.204, allocations: 0 / 0.6832 GB, free: 20.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/1.204, allocations: 424.2 kB / 0.6836 GB, free: 20.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/1.206, allocations: 1.197 MB / 0.6848 GB, free: 19.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/1.207, allocations: 2.054 MB / 0.6868 GB, free: 16.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/1.21, allocations: 1.696 MB / 0.6885 GB, free: 14.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/1.21, allocations: 8 kB / 0.6885 GB, free: 14.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.006243/1.216, allocations: 4.286 MB / 0.6927 GB, free: 10.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/1.216, allocations: 16 kB / 0.6927 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.248e-05/1.216, allocations: 31.95 kB / 0.6927 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001558/1.218, allocations: 0.714 MB / 0.6934 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/1.22, allocations: 0.6903 MB / 0.6941 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007425/1.228, allocations: 8.997 MB / 0.7029 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003836/1.232, allocations: 123.8 kB / 0.703 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000785/1.232, allocations: 136 kB / 0.7031 GB, free: 15.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (347): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007726/1.233, allocations: 198.3 kB / 0.7033 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007558/1.241, allocations: 3.645 MB / 0.7069 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008874/1.242, allocations: 292.3 kB / 0.7071 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007186/1.249, allocations: 3.917 MB / 0.711 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/1.249, allocations: 24 kB / 0.711 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.249, allocations: 8 kB / 0.711 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.611e-05/1.249, allocations: 15.95 kB / 0.711 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3206/1.569, allocations: 7.931 MB / 0.7188 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/1.57, allocations: 3.531 kB / 0.7188 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/1.572, allocations: 388.4 kB / 0.7191 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002903/1.575, allocations: 0.9279 MB / 0.72 GB, free: 95.37 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004351/1.575, allocations: 32.91 kB / 0.7201 GB, free: 95.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01642/1.592, allocations: 14.87 MB / 0.7346 GB, free: 86.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/1.592, allocations: 4.031 kB / 0.7346 GB, free: 86.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.602, allocations: 5.848 MB / 0.7403 GB, free: 86.01 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002027/1.604, allocations: 0.6315 MB / 0.7409 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004846/1.605, allocations: 22.39 kB / 0.7409 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/1.606, allocations: 124.5 kB / 0.7411 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006124/1.607, allocations: 183.8 kB / 0.7412 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/1.607, allocations: 64.77 kB / 0.7413 GB, free: 85.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002951/1.61, allocations: 1.504 MB / 0.7428 GB, free: 85.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.583e-06/1.61, allocations: 0 / 0.7428 GB, free: 85.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004393/1.615, allocations: 0.8928 MB / 0.7436 GB, free: 85.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/1.625, allocations: 7.457 MB / 0.7509 GB, free: 83.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00549/1.63, allocations: 3.772 MB / 0.7546 GB, free: 82.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/1.63, allocations: 3.875 kB / 0.7546 GB, free: 82.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003953/1.634, allocations: 2.549 MB / 0.7571 GB, free: 82.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/1.638, allocations: 0.5856 MB / 0.7577 GB, free: 82.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/1.654, allocations: 8.924 MB / 0.7664 GB, free: 80.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002937/1.657, allocations: 3.404 MB / 0.7697 GB, free: 79.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00253/1.66, allocations: 0.7208 MB / 0.7704 GB, free: 79.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002071/1.662, allocations: 1.939 MB / 0.7723 GB, free: 77.41 MB / 442.7 MB Notification: Performance of SimCode: time 8.81e-07/1.662, allocations: 0 / 0.7723 GB, free: 77.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/1.788, allocations: 72.97 MB / 0.8436 GB, free: 29.63 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/1.789, allocations: 192.1 kB / 0.8437 GB, free: 29.44 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.214/6.002, allocations: 0 / 0.8437 GB, free: 29.44 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat