Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001116/0.001116, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00115/0.00115, allocations: 102.2 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/2.989e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1219, allocations: 51.49 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.6306, allocations: 157.4 MB / 0.5397 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/0.6311, allocations: 105.4 kB / 0.5398 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.956/2.587, allocations: 388.9 MB / 0.9197 GB, free: 24.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.975e-06/2.587, allocations: 0 / 0.9197 GB, free: 24.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00119/2.588, allocations: 281 kB / 0.9199 GB, free: 24.7 MB / 458.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.04434/2.633, allocations: 10.77 MB / 0.9304 GB, free: 22.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/2.633, allocations: 11.22 kB / 0.9304 GB, free: 22.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02624/2.659, allocations: 4.392 MB / 0.9347 GB, free: 21.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02931/2.688, allocations: 9.333 MB / 0.9439 GB, free: 20.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001215/2.69, allocations: 396.4 kB / 0.9442 GB, free: 20.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007379/2.697, allocations: 0.6802 MB / 0.9449 GB, free: 20.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04207/2.739, allocations: 13.91 MB / 0.9585 GB, free: 20.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05703/2.796, allocations: 16.37 MB / 0.9745 GB, free: 18.88 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008292/2.797, allocations: 19.64 kB / 0.9745 GB, free: 18.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00529/2.802, allocations: 15.41 kB / 0.9745 GB, free: 18.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001182/2.804, allocations: 0.8177 MB / 0.9753 GB, free: 18.84 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1216/2.925, allocations: 58.6 MB / 1.033 GB, free: 13.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03218/2.957, allocations: 32.8 MB / 1.065 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007326/2.965, allocations: 3.871 MB / 1.068 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01903/2.984, allocations: 8.973 MB / 1.077 GB, free: 9.035 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/2.984, allocations: 70.27 kB / 1.077 GB, free: 8.969 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=352): time 4.648e-06/2.984, allocations: 0 / 1.077 GB, free: 8.969 MB / 0.4948 GB Notification: Performance of matching and sorting (n=394): time 0.04396/3.028, allocations: 16.59 MB / 1.093 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/3.028, allocations: 98.45 kB / 1.093 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01238/3.041, allocations: 3.781 MB / 1.097 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001148/3.042, allocations: 25.7 kB / 1.097 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005255/3.047, allocations: 5.462 MB / 1.103 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002163/3.049, allocations: 1.318 MB / 1.104 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007314/3.05, allocations: 0 / 1.104 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004748/3.05, allocations: 0.5749 MB / 1.104 GB, free: 3.531 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004477/3.055, allocations: 2.799 MB / 1.107 GB, free: 1.027 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3969/3.452, allocations: 6.361 MB / 1.113 GB, free: 81.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/3.464, allocations: 5.148 MB / 1.118 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000283/3.465, allocations: 27.03 kB / 1.118 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=876) (initialization): time 0.02721/3.492, allocations: 10.17 MB / 1.128 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00017/3.492, allocations: 49.75 kB / 1.128 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000235/3.492, allocations: 105.4 kB / 1.128 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002806/3.495, allocations: 1.023 MB / 1.129 GB, free: 81.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007005/3.502, allocations: 1.61 MB / 1.131 GB, free: 81.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/3.516, allocations: 9.918 MB / 1.141 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008174/3.524, allocations: 309.5 kB / 1.141 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002748/3.527, allocations: 362.1 kB / 1.141 GB, free: 77.72 MB / 0.5105 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 (818): * Single equations (assignments): 812 * 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,62.5%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002437/3.529, allocations: 373.1 kB / 1.142 GB, free: 77.61 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01837/3.548, allocations: 6.577 MB / 1.148 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002645/3.55, allocations: 496.5 kB / 1.149 GB, free: 77.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01843/3.569, allocations: 7.274 MB / 1.156 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.647e-05/3.569, allocations: 43.53 kB / 1.156 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-05/3.569, allocations: 12.89 kB / 1.156 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-05/3.569, allocations: 20.39 kB / 1.156 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04068/3.61, allocations: 15 MB / 1.17 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/3.61, allocations: 4.969 kB / 1.17 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003823/3.614, allocations: 0.7638 MB / 1.171 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/3.616, allocations: 0.8407 MB / 1.172 GB, free: 76.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006795/3.617, allocations: 28.56 kB / 1.172 GB, free: 76.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/3.627, allocations: 9.076 MB / 1.181 GB, free: 72.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/3.627, allocations: 2.5 kB / 1.181 GB, free: 72.65 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02284/3.65, allocations: 10.76 MB / 1.191 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003898/3.654, allocations: 1.052 MB / 1.192 GB, free: 71.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002269/3.656, allocations: 7.703 kB / 1.192 GB, free: 71.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004643/3.661, allocations: 203.1 kB / 1.193 GB, free: 71.09 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001328/3.662, allocations: 273.8 kB / 1.193 GB, free: 71.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008422/3.663, allocations: 114.1 kB / 1.193 GB, free: 71.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008331/3.671, allocations: 2.73 MB / 1.196 GB, free: 70.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.4e-07/3.671, allocations: 0 / 1.196 GB, free: 70.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01235/3.684, allocations: 1.724 MB / 1.197 GB, free: 70.9 MB / 0.5105 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 (362): * Single equations (assignments): 356 * 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%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02477/3.709, allocations: 12.35 MB / 1.209 GB, free: 68.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01392/3.722, allocations: 7.467 MB / 1.217 GB, free: 65.87 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/3.723, allocations: 0 / 1.217 GB, free: 65.87 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00684/3.729, allocations: 3.558 MB / 1.22 GB, free: 64.17 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007822/3.737, allocations: 0.982 MB / 1.221 GB, free: 63.92 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06419/3.801, allocations: 20.03 MB / 1.241 GB, free: 52.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01587/3.817, allocations: 7.529 MB / 1.248 GB, free: 46.78 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009359/3.827, allocations: 2.131 MB / 1.25 GB, free: 45.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008861/3.836, allocations: 4.26 MB / 1.254 GB, free: 41.43 MB / 0.5105 GB Notification: Performance of SimCode: time 9.92e-07/3.836, allocations: 0 / 1.254 GB, free: 41.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6117/4.447, allocations: 138.7 MB / 1.39 GB, free: 65.35 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/4.448, allocations: 212.1 kB / 1.39 GB, free: 65.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.68/11.13, allocations: 0 / 1.39 GB, free: 65.07 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat