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.0009717/0.0009717, allocations: 181 kB / 17.01 MB, free: 5.125 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.342/1.342, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0008305/0.0008306, allocations: 100.1 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002723, allocations: 8 kB / 328.4 MB, free: 15.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2399, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3054/0.5454, allocations: 156.2 MB / 0.5197 GB, free: 100.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5457, allocations: 104.6 kB / 0.5198 GB, free: 100.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.121/1.667, allocations: 384.8 MB / 0.8956 GB, free: 38.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.667, allocations: 0 / 0.8956 GB, free: 38.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008773/1.668, allocations: 287.9 kB / 0.8959 GB, free: 38.66 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.03426/1.702, allocations: 11.71 MB / 0.9073 GB, free: 34.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/1.702, allocations: 11.19 kB / 0.9073 GB, free: 34.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006425/1.708, allocations: 1.805 MB / 0.9091 GB, free: 34.58 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03303/1.741, allocations: 6.37 MB / 0.9153 GB, free: 33.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02699/1.768, allocations: 9.491 MB / 0.9246 GB, free: 31.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/1.77, allocations: 0.9293 MB / 0.9255 GB, free: 30.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00489/1.774, allocations: 1.204 MB / 0.9267 GB, free: 30.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04569/1.82, allocations: 20.55 MB / 0.9467 GB, free: 16.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006114/1.821, allocations: 22.91 kB / 0.9467 GB, free: 16.33 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00437/1.825, allocations: 0.5135 MB / 0.9472 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009751/1.826, allocations: 0.8356 MB / 0.9481 GB, free: 15.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04681/1.873, allocations: 19.12 MB / 0.9667 GB, free: 15.93 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3867/2.26, allocations: 64 MB / 1.029 GB, free: 36.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03601/2.296, allocations: 45.87 MB / 1.074 GB, free: 33.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0507/2.347, allocations: 23.66 MB / 1.097 GB, free: 27.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.289e-05/2.347, allocations: 97.33 kB / 1.097 GB, free: 27.09 MB / 490.7 MB Notification: Performance of pre-optimization done (n=771): time 1.446e-05/2.347, allocations: 0 / 1.097 GB, free: 27.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=811): time 0.1075/2.454, allocations: 46.61 MB / 1.143 GB, free: 6.594 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/2.454, allocations: 127 kB / 1.143 GB, free: 6.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007071/2.461, allocations: 3.605 MB / 1.146 GB, free: 5.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00142/2.463, allocations: 136 kB / 1.147 GB, free: 5.043 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003937/2.467, allocations: 4.894 MB / 1.151 GB, free: 1.367 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00392/2.471, allocations: 2.693 MB / 1.154 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/2.472, allocations: 164 kB / 1.154 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001023/2.473, allocations: 0.6632 MB / 1.155 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01129/2.485, allocations: 5.133 MB / 1.16 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0127/2.497, allocations: 7.518 MB / 1.167 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2753/2.773, allocations: 7.067 MB / 1.174 GB, free: 98.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.021e-05/2.773, allocations: 23.78 kB / 1.174 GB, free: 98.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.02427/2.797, allocations: 15.69 MB / 1.189 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/2.797, allocations: 36.16 kB / 1.189 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/2.797, allocations: 75.8 kB / 1.189 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007088/2.804, allocations: 4.126 MB / 1.193 GB, free: 98.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006768/2.811, allocations: 1.639 MB / 1.195 GB, free: 98.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/2.824, allocations: 12.22 MB / 1.207 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007251/2.832, allocations: 451.6 kB / 1.207 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/2.834, allocations: 391 kB / 1.208 GB, free: 93.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (854): * Single equations (assignments): 798 * 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.01106/2.845, allocations: 4.389 MB / 1.212 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00199/2.847, allocations: 0.5805 MB / 1.213 GB, free: 93.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02458/2.871, allocations: 14.45 MB / 1.227 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002518/2.872, allocations: 197.2 kB / 1.227 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.929e-05/2.872, allocations: 0 / 1.227 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001207/2.872, allocations: 34.55 kB / 1.227 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05724/2.929, allocations: 28.81 MB / 1.255 GB, free: 82.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-05/2.929, allocations: 3.125 kB / 1.255 GB, free: 82.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004872/2.934, allocations: 1.061 MB / 1.256 GB, free: 82.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00696/2.941, allocations: 4.015 MB / 1.26 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001549/2.943, allocations: 171.6 kB / 1.26 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/2.953, allocations: 12.07 MB / 1.272 GB, free: 73.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/2.953, allocations: 3.531 kB / 1.272 GB, free: 73.08 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0318/2.985, allocations: 21.89 MB / 1.293 GB, free: 59.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005334/2.99, allocations: 1.746 MB / 1.295 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002105/2.992, allocations: 116 kB / 1.295 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004407/2.997, allocations: 334.8 kB / 1.296 GB, free: 57.65 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001667/2.999, allocations: 0.5703 MB / 1.296 GB, free: 57.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008839/2.999, allocations: 217.8 kB / 1.296 GB, free: 57.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00437/3.004, allocations: 2.698 MB / 1.299 GB, free: 54.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.81e-07/3.004, allocations: 0 / 1.299 GB, free: 54.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01071/3.015, allocations: 2.15 MB / 1.301 GB, free: 52.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 491 * 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.03724/3.052, allocations: 23.6 MB / 1.324 GB, free: 31.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02287/3.075, allocations: 13.09 MB / 1.337 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/3.075, allocations: 0 / 1.337 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01202/3.087, allocations: 6.786 MB / 1.344 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006435/3.093, allocations: 1.18 MB / 1.345 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3737/3.467, allocations: 124.9 MB / 1.467 GB, free: 22.44 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01374/3.481, allocations: 7.973 MB / 1.474 GB, free: 21.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008943/3.49, allocations: 1.96 MB / 1.476 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009133/3.499, allocations: 4.536 MB / 1.481 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of SimCode: time 1.372e-06/3.499, allocations: 0 / 1.481 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5178/4.017, allocations: 209.9 MB / 1.686 GB, free: 32.19 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/4.017, allocations: 292.8 kB / 1.686 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.582/10.6, allocations: 0 / 1.686 GB, free: 31.82 MB / 0.4948 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