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.SMR_CurrentSource.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.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.002298/0.002298, allocations: 174.8 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.631/1.631, allocations: 221.4 MB / 235.5 MB, free: 2.918 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.0008791/0.000879, allocations: 91.59 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.689e-05/3.692e-05, allocations: 0 / 344 MB, free: 4.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1235, allocations: 50.42 MB / 394.4 MB, free: 1.711 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4776/0.6012, allocations: 157.1 MB / 0.5385 GB, free: 10.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.6015, allocations: 99.94 kB / 0.5386 GB, free: 10.06 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.801/2.402, allocations: 375 MB / 0.9049 GB, free: 45.16 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.256e-06/2.403, allocations: 2.812 kB / 0.9049 GB, free: 45.16 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001695/2.404, allocations: 279.6 kB / 0.9051 GB, free: 45.14 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05281/2.457, allocations: 10.75 MB / 0.9156 GB, free: 41.74 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/2.457, allocations: 13.66 kB / 0.9157 GB, free: 41.74 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01141/2.469, allocations: 1.695 MB / 0.9173 GB, free: 41.62 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02785/2.496, allocations: 4.399 MB / 0.9216 GB, free: 40.96 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/2.525, allocations: 9.326 MB / 0.9307 GB, free: 39.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001135/2.526, allocations: 0.8676 MB / 0.9316 GB, free: 39.77 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006364/2.532, allocations: 1.153 MB / 0.9327 GB, free: 39.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05768/2.59, allocations: 18.2 MB / 0.9505 GB, free: 38.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006561/2.591, allocations: 25.89 kB / 0.9505 GB, free: 38.28 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005376/2.596, allocations: 0.4964 MB / 0.951 GB, free: 38.28 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009213/2.597, allocations: 0.8067 MB / 0.9518 GB, free: 38.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03921/2.636, allocations: 15.25 MB / 0.9666 GB, free: 38.14 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1481/2.785, allocations: 59.12 MB / 1.024 GB, free: 8.805 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03679/2.821, allocations: 32.68 MB / 1.056 GB, free: 7.133 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008327/2.83, allocations: 3.604 MB / 1.06 GB, free: 3.844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4704/3.3, allocations: 8.617 MB / 1.068 GB, free: 74.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.211e-05/3.3, allocations: 72.5 kB / 1.068 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=350): time 6.563e-06/3.3, allocations: 0 / 1.068 GB, free: 74.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=390): time 0.03178/3.332, allocations: 13.52 MB / 1.082 GB, free: 73.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/3.332, allocations: 95.31 kB / 1.082 GB, free: 73.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/3.344, allocations: 4.27 MB / 1.086 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009965/3.345, allocations: 90.58 kB / 1.086 GB, free: 72.76 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004618/3.349, allocations: 5.458 MB / 1.091 GB, free: 70.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002132/3.351, allocations: 1.359 MB / 1.093 GB, free: 69.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000493/3.352, allocations: 136.4 kB / 1.093 GB, free: 69.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004346/3.352, allocations: 0.5805 MB / 1.093 GB, free: 68.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004409/3.357, allocations: 2.78 MB / 1.096 GB, free: 68.87 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006533/3.363, allocations: 5.808 MB / 1.102 GB, free: 65.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008106/3.371, allocations: 4.151 MB / 1.106 GB, free: 65.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001512/3.372, allocations: 31.69 kB / 1.106 GB, free: 65.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.01982/3.391, allocations: 9.637 MB / 1.115 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/3.392, allocations: 48.77 kB / 1.115 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002365/3.392, allocations: 105.2 kB / 1.115 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/3.394, allocations: 0.9335 MB / 1.116 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006621/3.401, allocations: 1.595 MB / 1.118 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/3.412, allocations: 9.376 MB / 1.127 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00827/3.42, allocations: 408.8 kB / 1.127 GB, free: 60.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001849/3.422, allocations: 356.9 kB / 1.128 GB, free: 60.51 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00208/3.424, allocations: 0.5527 MB / 1.128 GB, free: 60.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00189/3.426, allocations: 0.508 MB / 1.129 GB, free: 60.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01272/3.439, allocations: 6.297 MB / 1.135 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.714e-05/3.439, allocations: 41.19 kB / 1.135 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.972e-05/3.439, allocations: 12.58 kB / 1.135 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.464e-05/3.439, allocations: 17.34 kB / 1.135 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03692/3.476, allocations: 15.42 MB / 1.15 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/3.476, allocations: 3.312 kB / 1.15 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003741/3.48, allocations: 0.7423 MB / 1.151 GB, free: 58.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/3.482, allocations: 0.7765 MB / 1.151 GB, free: 58.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008574/3.483, allocations: 84.83 kB / 1.151 GB, free: 58.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00871/3.492, allocations: 8.554 MB / 1.16 GB, free: 53.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/3.492, allocations: 10.36 kB / 1.16 GB, free: 53.46 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/3.507, allocations: 9.509 MB / 1.169 GB, free: 49.05 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005503/3.513, allocations: 1.041 MB / 1.17 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002212/3.515, allocations: 71.53 kB / 1.17 GB, free: 48.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004184/3.519, allocations: 235.2 kB / 1.17 GB, free: 48.31 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006852/3.52, allocations: 258.9 kB / 1.171 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002822/3.52, allocations: 115.5 kB / 1.171 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006906/3.527, allocations: 3.161 MB / 1.174 GB, free: 47.05 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/3.527, allocations: 2.531 kB / 1.174 GB, free: 47.05 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01076/3.538, allocations: 1.923 MB / 1.176 GB, free: 46.85 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01429/3.552, allocations: 11.29 MB / 1.187 GB, free: 41.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01125/3.564, allocations: 7.441 MB / 1.194 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/3.564, allocations: 0 / 1.194 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004752/3.568, allocations: 3.436 MB / 1.197 GB, free: 33.19 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007008/3.575, allocations: 1.158 MB / 1.199 GB, free: 32.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06072/3.636, allocations: 20.05 MB / 1.218 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01724/3.654, allocations: 7.519 MB / 1.225 GB, free: 9.242 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009956/3.664, allocations: 2.142 MB / 1.228 GB, free: 7.859 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00978/3.673, allocations: 4.307 MB / 1.232 GB, free: 3.852 MB / 0.4948 GB Notification: Performance of SimCode: time 2.284e-06/3.673, allocations: 0 / 1.232 GB, free: 3.852 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6663/4.34, allocations: 150.2 MB / 1.378 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/4.34, allocations: 237.3 kB / 1.379 GB, free: 34.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.223/11.56, allocations: 3.281 kB / 1.379 GB, free: 34.64 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat