Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008337/0.0008337, allocations: 107.2 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002146/0.0002146, allocations: 4 kB / 358 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2009, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2959/0.4968, allocations: 117.7 MB / 0.5148 GB, free: 46.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001904/0.4971, allocations: 96.64 kB / 0.5149 GB, free: 46.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1572/0.6543, allocations: 79.92 MB / 0.593 GB, free: 7.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.6543, allocations: 0 / 0.593 GB, free: 7.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001902/0.6545, allocations: 83.88 kB / 0.5931 GB, free: 7.594 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.007451/0.662, allocations: 3.594 MB / 0.5966 GB, free: 3.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.662, allocations: 8.031 kB / 0.5966 GB, free: 3.918 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007079/0.6627, allocations: 462.9 kB / 0.597 GB, free: 3.453 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002332/0.6651, allocations: 0.5978 MB / 0.5976 GB, free: 2.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006844/0.6719, allocations: 3.19 MB / 0.6007 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.6722, allocations: 238.2 kB / 0.6009 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005671/0.6727, allocations: 311.9 kB / 0.6012 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006793/0.6795, allocations: 4.105 MB / 0.6052 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.417e-05/0.6796, allocations: 7.906 kB / 0.6053 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003221/0.68, allocations: 132 kB / 0.6054 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.6801, allocations: 138.1 kB / 0.6055 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.686, allocations: 3.362 MB / 0.6088 GB, free: 7.152 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02113/0.7071, allocations: 13.97 MB / 0.6224 GB, free: 8.766 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005556/0.7127, allocations: 6.188 MB / 0.6285 GB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005671/0.7184, allocations: 3.411 MB / 0.6318 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.7185, allocations: 47.88 kB / 0.6319 GB, free: 14.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 2.605e-06/0.7185, allocations: 4 kB / 0.6319 GB, free: 14.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=145): time 0.01257/0.7311, allocations: 6.643 MB / 0.6383 GB, free: 7.391 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.7312, allocations: 90.42 kB / 0.6384 GB, free: 7.285 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/0.7337, allocations: 1.702 MB / 0.6401 GB, free: 5.547 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.7338, allocations: 53.7 kB / 0.6401 GB, free: 5.488 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009875/0.7348, allocations: 1.459 MB / 0.6416 GB, free: 4.012 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.7352, allocations: 492.9 kB / 0.642 GB, free: 3.523 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-05/0.7353, allocations: 36 kB / 0.6421 GB, free: 3.488 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.7354, allocations: 373.9 kB / 0.6424 GB, free: 3.117 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.7366, allocations: 0.7612 MB / 0.6432 GB, free: 2.359 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.7381, allocations: 1.264 MB / 0.6444 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.7395, allocations: 0.9354 MB / 0.6453 GB, free: 15.94 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.7395, allocations: 8 kB / 0.6453 GB, free: 15.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00397/0.7435, allocations: 2.702 MB / 0.648 GB, free: 13.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002348/0.7458, allocations: 6.432 MB / 0.6542 GB, free: 6.242 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.7459, allocations: 16 kB / 0.6543 GB, free: 6.227 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.747, allocations: 0.4951 MB / 0.6547 GB, free: 5.719 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.7484, allocations: 367.4 kB / 0.6551 GB, free: 5.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006883/0.7553, allocations: 7.2 MB / 0.6621 GB, free: 13.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.7568, allocations: 99.83 kB / 0.6622 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.7569, allocations: 76 kB / 0.6623 GB, free: 13.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/0.7569, allocations: 0 / 0.6623 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003557/0.7605, allocations: 2.48 MB / 0.6647 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.7605, allocations: 16 kB / 0.6647 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.7615, allocations: 0.4919 MB / 0.6652 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.7628, allocations: 371.4 kB / 0.6656 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006814/0.7696, allocations: 7.199 MB / 0.6726 GB, free: 2.582 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.7713, allocations: 88.12 kB / 0.6727 GB, free: 2.496 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.7715, allocations: 75.92 kB / 0.6728 GB, free: 2.422 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001997/0.7735, allocations: 1.059 MB / 0.6738 GB, free: 1.352 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003608/0.7738, allocations: 221.3 kB / 0.674 GB, free: 1.133 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1853/0.9592, allocations: 2.481 MB / 0.6764 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/0.9592, allocations: 14.09 kB / 0.6764 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.9592, allocations: 3.5 kB / 0.6764 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.751e-05/0.9593, allocations: 8.094 kB / 0.6764 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008446/0.9677, allocations: 5.368 MB / 0.6817 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.9678, allocations: 2.969 kB / 0.6817 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008604/0.9686, allocations: 193.9 kB / 0.6819 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.9699, allocations: 0.6415 MB / 0.6825 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/0.97, allocations: 32.58 kB / 0.6825 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008674/0.9787, allocations: 11.3 MB / 0.6936 GB, free: 93.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.9787, allocations: 7.516 kB / 0.6936 GB, free: 93.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/0.9833, allocations: 3.809 MB / 0.6973 GB, free: 93.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.9844, allocations: 475.5 kB / 0.6978 GB, free: 93.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002272/0.9846, allocations: 31.8 kB / 0.6978 GB, free: 93.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009523/0.9856, allocations: 88.25 kB / 0.6979 GB, free: 93.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.9858, allocations: 116.5 kB / 0.698 GB, free: 93.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.761e-05/0.9859, allocations: 39.56 kB / 0.698 GB, free: 93.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001882/0.9878, allocations: 1.304 MB / 0.6993 GB, free: 92.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9878, allocations: 0 / 0.6993 GB, free: 92.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003023/0.9909, allocations: 1.131 MB / 0.7004 GB, free: 92.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.004937/0.9958, allocations: 5.262 MB / 0.7055 GB, free: 91.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004709/1.001, allocations: 4.158 MB / 0.7096 GB, free: 90.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.001, allocations: 3.562 kB / 0.7096 GB, free: 90.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001941/1.002, allocations: 1.788 MB / 0.7113 GB, free: 89.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002355/1.005, allocations: 0.6055 MB / 0.7119 GB, free: 89.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02584/1.031, allocations: 27.94 MB / 0.7392 GB, free: 71.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001702/1.032, allocations: 2.378 MB / 0.7415 GB, free: 70.89 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001883/1.034, allocations: 0.5336 MB / 0.7421 GB, free: 70.82 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/1.036, allocations: 1.159 MB / 0.7432 GB, free: 69.86 MB / 458.7 MB Notification: Performance of SimCode: time 7.01e-07/1.036, allocations: 7.812 kB / 0.7432 GB, free: 69.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07917/1.115, allocations: 64.51 MB / 0.8062 GB, free: 32.33 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.115, allocations: 264.9 kB / 0.8065 GB, free: 31.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.54/4.655, allocations: 0 / 0.8065 GB, free: 31.98 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat