Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.SMPM_Mains,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001806/0.001806, 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.573/1.573, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 95.39 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.532e-05/1.536e-05, allocations: 0 / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 51.49 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5412/0.6747, allocations: 159.2 MB / 0.5415 GB, free: 14.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.675, allocations: 103.2 kB / 0.5416 GB, free: 14.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.935/2.61, allocations: 401.2 MB / 0.9334 GB, free: 28.48 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.022e-06/2.61, allocations: 0 / 0.9334 GB, free: 28.48 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001021/2.611, allocations: 286.3 kB / 0.9337 GB, free: 28.45 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.04527/2.657, allocations: 11.19 MB / 0.9446 GB, free: 24.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/2.657, allocations: 8.219 kB / 0.9446 GB, free: 24.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02846/2.685, allocations: 4.586 MB / 0.9491 GB, free: 24.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03137/2.716, allocations: 9.753 MB / 0.9586 GB, free: 23.1 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001566/2.718, allocations: 387.1 kB / 0.959 GB, free: 23.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006607/2.725, allocations: 0.6928 MB / 0.9597 GB, free: 23.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03754/2.762, allocations: 14.15 MB / 0.9735 GB, free: 23.04 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05315/2.815, allocations: 16.49 MB / 0.9896 GB, free: 21.61 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008458/2.816, allocations: 25.48 kB / 0.9896 GB, free: 21.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00546/2.822, allocations: 7.875 kB / 0.9896 GB, free: 21.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001073/2.823, allocations: 0.7945 MB / 0.9904 GB, free: 21.57 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1354/2.958, allocations: 61.1 MB / 1.05 GB, free: 14.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03655/2.995, allocations: 30.73 MB / 1.08 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007613/3.003, allocations: 4.153 MB / 1.084 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/3.027, allocations: 10.42 MB / 1.094 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/3.027, allocations: 80.83 kB / 1.094 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=407): time 6.162e-06/3.027, allocations: 2.344 kB / 1.094 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=417): time 0.4452/3.472, allocations: 18.8 MB / 1.113 GB, free: 72.13 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/3.472, allocations: 124.4 kB / 1.113 GB, free: 72.03 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007747/3.48, allocations: 3.906 MB / 1.117 GB, free: 71.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009016/3.481, allocations: 25.7 kB / 1.117 GB, free: 71.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003328/3.484, allocations: 5.351 MB / 1.122 GB, free: 69.94 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001988/3.486, allocations: 1.391 MB / 1.123 GB, free: 69.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004881/3.487, allocations: 0 / 1.123 GB, free: 69.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003681/3.487, allocations: 0.5609 MB / 1.124 GB, free: 68.71 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003943/3.491, allocations: 2.817 MB / 1.127 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/3.496, allocations: 5.248 MB / 1.132 GB, free: 65.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/3.509, allocations: 5.458 MB / 1.137 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001417/3.509, allocations: 23.19 kB / 1.137 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02702/3.536, allocations: 10.57 MB / 1.147 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.058e-05/3.536, allocations: 37.09 kB / 1.147 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/3.536, allocations: 82.94 kB / 1.147 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00303/3.539, allocations: 1.12 MB / 1.149 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006298/3.546, allocations: 1.486 MB / 1.15 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/3.56, allocations: 12.03 MB / 1.162 GB, free: 59.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007016/3.567, allocations: 267.9 kB / 1.162 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002197/3.57, allocations: 326.4 kB / 1.162 GB, free: 59.92 MB / 0.5105 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 (765): * Single equations (assignments): 756 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002167/3.572, allocations: 324.2 kB / 1.163 GB, free: 59.77 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01792/3.59, allocations: 7.509 MB / 1.17 GB, free: 59.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002055/3.592, allocations: 0.4956 MB / 1.17 GB, free: 58.81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01787/3.61, allocations: 8.096 MB / 1.178 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01125/3.621, allocations: 5.189 MB / 1.183 GB, free: 58.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.409e-05/3.621, allocations: 16.42 kB / 1.183 GB, free: 58.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001185/3.621, allocations: 20.2 kB / 1.183 GB, free: 58.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03701/3.658, allocations: 16.41 MB / 1.2 GB, free: 57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.22e-05/3.658, allocations: 3.688 kB / 1.2 GB, free: 57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00343/3.662, allocations: 0.7302 MB / 1.2 GB, free: 57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003337/3.665, allocations: 1.166 MB / 1.201 GB, free: 56.93 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007082/3.666, allocations: 39.44 kB / 1.201 GB, free: 56.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/3.682, allocations: 15.49 MB / 1.217 GB, free: 49.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/3.683, allocations: 13.72 kB / 1.217 GB, free: 49.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02154/3.704, allocations: 12.06 MB / 1.228 GB, free: 43.74 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004044/3.708, allocations: 1.123 MB / 1.229 GB, free: 43.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001597/3.71, allocations: 16.98 kB / 1.229 GB, free: 43.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003212/3.713, allocations: 189.2 kB / 1.23 GB, free: 43.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007332/3.714, allocations: 305.9 kB / 1.23 GB, free: 42.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002953/3.714, allocations: 122.1 kB / 1.23 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00642/3.721, allocations: 2.851 MB / 1.233 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.143e-06/3.721, allocations: 0 / 1.233 GB, free: 41.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0107/3.731, allocations: 1.82 MB / 1.235 GB, free: 41.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (355): * Single equations (assignments): 345 * 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%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0229/3.754, allocations: 14.16 MB / 1.248 GB, free: 34.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01307/3.767, allocations: 7.488 MB / 1.256 GB, free: 30.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/3.767, allocations: 0 / 1.256 GB, free: 30.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007486/3.775, allocations: 4.029 MB / 1.26 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009051/3.784, allocations: 1.064 MB / 1.261 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0696/3.854, allocations: 20.65 MB / 1.281 GB, free: 8.102 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01917/3.873, allocations: 7.58 MB / 1.288 GB, free: 2.449 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009435/3.882, allocations: 1.978 MB / 1.29 GB, free: 1.188 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3945/4.277, allocations: 4.984 MB / 1.295 GB, free: 58.04 MB / 0.5105 GB Notification: Performance of SimCode: time 2.044e-06/4.277, allocations: 0.5 kB / 1.295 GB, free: 58.04 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2317/4.509, allocations: 146 MB / 1.438 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/4.509, allocations: 203.1 kB / 1.438 GB, free: 21.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.596/11.1, allocations: 0 / 1.438 GB, free: 21.31 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat