Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00102/0.00102, 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.38/1.38, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009104/0.0009104, allocations: 86.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.63e-05, allocations: 8 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.07985, allocations: 47.56 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.4377, allocations: 156.1 MB / 0.5139 GB, free: 2.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.438, allocations: 101.7 kB / 0.514 GB, free: 2.125 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.314/1.752, allocations: 384.5 MB / 0.8895 GB, free: 33.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.752, allocations: 0 / 0.8895 GB, free: 33.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006543/1.753, allocations: 290.3 kB / 0.8898 GB, free: 33.52 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.03302/1.786, allocations: 11.06 MB / 0.9006 GB, free: 29.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/1.786, allocations: 7 kB / 0.9006 GB, free: 29.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005863/1.792, allocations: 1.779 MB / 0.9024 GB, free: 29.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03283/1.825, allocations: 6.339 MB / 0.9086 GB, free: 29.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02075/1.845, allocations: 9.452 MB / 0.9178 GB, free: 27.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008346/1.846, allocations: 0.9227 MB / 0.9187 GB, free: 27.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004157/1.85, allocations: 1.203 MB / 0.9199 GB, free: 27.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0398/1.89, allocations: 20.32 MB / 0.9397 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003242/1.891, allocations: 25.12 kB / 0.9397 GB, free: 26.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001673/1.892, allocations: 0.5151 MB / 0.9402 GB, free: 26.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007041/1.893, allocations: 0.8401 MB / 0.9411 GB, free: 26.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03457/1.927, allocations: 18.38 MB / 0.959 GB, free: 19.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1299/2.057, allocations: 64.04 MB / 1.022 GB, free: 1.684 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.339/2.396, allocations: 46.96 MB / 1.067 GB, free: 25.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.015/2.411, allocations: 7.725 MB / 1.075 GB, free: 25.78 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04304/2.455, allocations: 23.51 MB / 1.098 GB, free: 24.86 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.807e-05/2.455, allocations: 98.73 kB / 1.098 GB, free: 24.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=760): time 9.207e-06/2.455, allocations: 0 / 1.098 GB, free: 24.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=800): time 0.04085/2.496, allocations: 26.61 MB / 1.124 GB, free: 21.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/2.496, allocations: 122.2 kB / 1.124 GB, free: 21.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005484/2.501, allocations: 3.568 MB / 1.128 GB, free: 19.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00146/2.503, allocations: 135.1 kB / 1.128 GB, free: 19.63 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002351/2.505, allocations: 4.918 MB / 1.133 GB, free: 15.94 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002762/2.508, allocations: 2.661 MB / 1.135 GB, free: 13.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004837/2.508, allocations: 160.4 kB / 1.135 GB, free: 13.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003846/2.509, allocations: 0.6692 MB / 1.136 GB, free: 13.28 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006102/2.515, allocations: 5.019 MB / 1.141 GB, free: 11.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007144/2.522, allocations: 7.422 MB / 1.148 GB, free: 6.227 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008034/2.53, allocations: 6.373 MB / 1.154 GB, free: 3.695 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-05/2.53, allocations: 17.81 kB / 1.154 GB, free: 3.695 MB / 474.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.02524/2.555, allocations: 15.7 MB / 1.17 GB, free: 14.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.931e-05/2.555, allocations: 36.34 kB / 1.17 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/2.556, allocations: 72.34 kB / 1.17 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007365/2.563, allocations: 4.105 MB / 1.174 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006643/2.57, allocations: 1.633 MB / 1.175 GB, free: 13.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/2.584, allocations: 12.19 MB / 1.187 GB, free: 4.559 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00708/2.591, allocations: 440.8 kB / 1.188 GB, free: 4.215 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00205/2.593, allocations: 390.2 kB / 1.188 GB, free: 3.859 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 791 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002874/2.596, allocations: 0.58 MB / 1.189 GB, free: 3.383 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001987/2.598, allocations: 0.5771 MB / 1.189 GB, free: 2.805 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03317/2.631, allocations: 15.04 MB / 1.204 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001768/2.631, allocations: 192.9 kB / 1.204 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/2.631, allocations: 7.141 kB / 1.204 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-05/2.631, allocations: 37.5 kB / 1.204 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3398/2.971, allocations: 28.5 MB / 1.232 GB, free: 86.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.947e-05/2.971, allocations: 0 / 1.232 GB, free: 86.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006429/2.978, allocations: 1.037 MB / 1.233 GB, free: 86.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008042/2.986, allocations: 3.974 MB / 1.237 GB, free: 86.71 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001772/2.988, allocations: 172.4 kB / 1.237 GB, free: 86.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.011/2.999, allocations: 12.01 MB / 1.249 GB, free: 82.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/2.999, allocations: 0 / 1.249 GB, free: 82.14 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03194/3.031, allocations: 21.41 MB / 1.27 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005252/3.036, allocations: 1.728 MB / 1.271 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/3.038, allocations: 117.2 kB / 1.271 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004479/3.043, allocations: 336.7 kB / 1.272 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001616/3.044, allocations: 0.5632 MB / 1.272 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007679/3.045, allocations: 214.4 kB / 1.272 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004487/3.05, allocations: 2.657 MB / 1.275 GB, free: 80.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.92e-07/3.05, allocations: 0 / 1.275 GB, free: 80.71 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009916/3.059, allocations: 2.144 MB / 1.277 GB, free: 80.71 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 (536): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.03185/3.091, allocations: 23.22 MB / 1.3 GB, free: 72.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02041/3.112, allocations: 12.86 MB / 1.312 GB, free: 67.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/3.112, allocations: 0 / 1.312 GB, free: 67.72 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01084/3.123, allocations: 6.662 MB / 1.319 GB, free: 64.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006992/3.13, allocations: 1.179 MB / 1.32 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05265/3.182, allocations: 25.43 MB / 1.345 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01013/3.193, allocations: 7.977 MB / 1.353 GB, free: 41.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006914/3.2, allocations: 1.957 MB / 1.355 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0079/3.207, allocations: 4.511 MB / 1.359 GB, free: 35.78 MB / 0.4948 GB Notification: Performance of SimCode: time 2.074e-06/3.208, allocations: 0 / 1.359 GB, free: 35.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5405/3.748, allocations: 205.8 MB / 1.56 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002548/3.748, allocations: 246.5 kB / 1.56 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.722/10.47, allocations: 0.875 kB / 1.56 GB, free: 14.57 MB / 0.5105 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat