Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.001343/0.001343, allocations: 175.5 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.521/1.521, allocations: 221.3 MB / 235.5 MB, free: 2.98 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.0009082/0.0009082, allocations: 102.2 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.101e-05/3.105e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 50.43 MB / 394.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5052/0.6376, allocations: 158.9 MB / 0.5403 GB, free: 8.387 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.638, allocations: 105.6 kB / 0.5404 GB, free: 8.285 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.808/2.446, allocations: 387.5 MB / 0.9188 GB, free: 38.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.876e-06/2.446, allocations: 0 / 0.9188 GB, free: 38.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001127/2.447, allocations: 281.8 kB / 0.9191 GB, free: 38.79 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04675/2.494, allocations: 11.16 MB / 0.93 GB, free: 35.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/2.494, allocations: 7.594 kB / 0.93 GB, free: 35.3 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01092/2.505, allocations: 1.917 MB / 0.9319 GB, free: 35.14 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02918/2.534, allocations: 4.562 MB / 0.9363 GB, free: 34.47 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03107/2.566, allocations: 9.738 MB / 0.9458 GB, free: 33.27 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001506/2.567, allocations: 0.8761 MB / 0.9467 GB, free: 33.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006762/2.574, allocations: 1.16 MB / 0.9478 GB, free: 33.24 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05953/2.633, allocations: 18.32 MB / 0.9657 GB, free: 31.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007525/2.634, allocations: 26.88 kB / 0.9657 GB, free: 31.74 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00575/2.64, allocations: 0.4914 MB / 0.9662 GB, free: 31.74 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001145/2.641, allocations: 0.8009 MB / 0.967 GB, free: 31.71 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04039/2.682, allocations: 15.56 MB / 0.9822 GB, free: 31.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1256/2.807, allocations: 61.26 MB / 1.042 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4449/3.252, allocations: 29.63 MB / 1.071 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008989/3.261, allocations: 4.006 MB / 1.075 GB, free: 49.49 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02489/3.286, allocations: 9.937 MB / 1.085 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.399e-05/3.286, allocations: 80.19 kB / 1.085 GB, free: 48.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=410): time 7.073e-06/3.286, allocations: 2.562 kB / 1.085 GB, free: 48.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=420): time 0.03831/3.325, allocations: 15.18 MB / 1.099 GB, free: 45.28 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/3.325, allocations: 120.8 kB / 1.1 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01146/3.336, allocations: 4.505 MB / 1.104 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001236/3.337, allocations: 95.58 kB / 1.104 GB, free: 44.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003857/3.341, allocations: 5.34 MB / 1.109 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002179/3.344, allocations: 1.452 MB / 1.111 GB, free: 41.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006001/3.344, allocations: 130 kB / 1.111 GB, free: 41.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004113/3.345, allocations: 0.5688 MB / 1.111 GB, free: 40.87 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00501/3.35, allocations: 2.809 MB / 1.114 GB, free: 40.85 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00719/3.357, allocations: 5.281 MB / 1.119 GB, free: 37.85 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006609/3.363, allocations: 4.017 MB / 1.123 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/3.364, allocations: 21.84 kB / 1.123 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01977/3.383, allocations: 9.611 MB / 1.133 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.696e-05/3.384, allocations: 39.09 kB / 1.133 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/3.384, allocations: 86.78 kB / 1.133 GB, free: 37.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003093/3.387, allocations: 1.127 MB / 1.134 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006021/3.393, allocations: 1.457 MB / 1.135 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/3.408, allocations: 12.47 MB / 1.147 GB, free: 31.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007173/3.415, allocations: 363.6 kB / 1.148 GB, free: 31.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/3.417, allocations: 327.1 kB / 1.148 GB, free: 31.76 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002105/3.419, allocations: 0.5056 MB / 1.149 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001927/3.421, allocations: 0.5324 MB / 1.149 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/3.434, allocations: 7.075 MB / 1.156 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007253/3.441, allocations: 4.218 MB / 1.16 GB, free: 30.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.216e-05/3.442, allocations: 14.22 kB / 1.16 GB, free: 30.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.918e-05/3.442, allocations: 25.03 kB / 1.16 GB, free: 30.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0375/3.479, allocations: 17.03 MB / 1.177 GB, free: 23.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/3.479, allocations: 3.906 kB / 1.177 GB, free: 23.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002859/3.482, allocations: 0.6921 MB / 1.177 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003148/3.485, allocations: 1.186 MB / 1.179 GB, free: 23.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003774/3.486, allocations: 104.8 kB / 1.179 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01538/3.501, allocations: 16.03 MB / 1.194 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/3.501, allocations: 7.156 kB / 1.194 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01754/3.519, allocations: 10.85 MB / 1.205 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004645/3.523, allocations: 1.139 MB / 1.206 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00188/3.525, allocations: 84.83 kB / 1.206 GB, free: 5.094 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003879/3.529, allocations: 225.4 kB / 1.206 GB, free: 5.035 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007783/3.53, allocations: 301.6 kB / 1.207 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003056/3.53, allocations: 127.1 kB / 1.207 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006364/3.537, allocations: 3.365 MB / 1.21 GB, free: 3.672 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.81e-07/3.537, allocations: 0 / 1.21 GB, free: 3.672 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01162/3.548, allocations: 2.035 MB / 1.212 GB, free: 3.438 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02381/3.572, allocations: 13.48 MB / 1.225 GB, free: 8.078 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01486/3.587, allocations: 7.619 MB / 1.233 GB, free: 1.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/3.587, allocations: 4 kB / 1.233 GB, free: 1.266 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00932/3.596, allocations: 4.173 MB / 1.237 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008569/3.605, allocations: 1.304 MB / 1.238 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06222/3.667, allocations: 20.74 MB / 1.258 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01658/3.684, allocations: 7.581 MB / 1.266 GB, free: 5.168 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008141/3.692, allocations: 2.002 MB / 1.268 GB, free: 3.855 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3777/4.07, allocations: 4.511 MB / 1.272 GB, free: 98.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.974e-06/4.07, allocations: 0 / 1.272 GB, free: 98.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2584/4.328, allocations: 162.2 MB / 1.43 GB, free: 39.36 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/4.329, allocations: 229.6 kB / 1.431 GB, free: 39.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.459/12.79, allocations: 7.234 kB / 1.431 GB, free: 39.1 MB / 0.5417 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat