Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.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.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",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.001185/0.001185, allocations: 181.4 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.269/1.269, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008902/0.0008902, allocations: 88.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002556, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.227, allocations: 47.57 MB / 375.9 MB, free: 45.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3498, allocations: 115.7 MB / 491.6 MB, free: 12.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.3501, allocations: 91.95 kB / 491.7 MB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3234/0.6735, allocations: 76.95 MB / 0.5553 GB, free: 61.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.6735, allocations: 4 kB / 0.5553 GB, free: 61.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003006/0.6739, allocations: 83.88 kB / 0.5554 GB, free: 61.89 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.009677/0.6835, allocations: 3.552 MB / 0.5589 GB, free: 58.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.6836, allocations: 8.031 kB / 0.5589 GB, free: 58.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001342/0.685, allocations: 455.2 kB / 0.5593 GB, free: 57.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002827/0.6878, allocations: 0.6006 MB / 0.5599 GB, free: 57.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008237/0.696, allocations: 3.167 MB / 0.563 GB, free: 53.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.6963, allocations: 230.2 kB / 0.5632 GB, free: 53.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.6974, allocations: 319.9 kB / 0.5635 GB, free: 53.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00834/0.7057, allocations: 4.117 MB / 0.5675 GB, free: 49.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.634e-05/0.7058, allocations: 4 kB / 0.5675 GB, free: 49.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000487/0.7063, allocations: 132 kB / 0.5677 GB, free: 49.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.7065, allocations: 146.1 kB / 0.5678 GB, free: 48.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005449/0.7119, allocations: 3.358 MB / 0.5711 GB, free: 45.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.7298, allocations: 13.81 MB / 0.5846 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.7338, allocations: 5.939 MB / 0.5904 GB, free: 24.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004439/0.7382, allocations: 3.237 MB / 0.5935 GB, free: 21.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.7383, allocations: 55.88 kB / 0.5936 GB, free: 21.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 3.016e-06/0.7383, allocations: 0 / 0.5936 GB, free: 21.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01087/0.7492, allocations: 6.792 MB / 0.6002 GB, free: 14.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.7492, allocations: 94.42 kB / 0.6003 GB, free: 14.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/0.7512, allocations: 1.694 MB / 0.602 GB, free: 12.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.403e-05/0.7513, allocations: 49.7 kB / 0.602 GB, free: 12.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/0.752, allocations: 1.447 MB / 0.6034 GB, free: 10.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002542/0.7522, allocations: 0.4968 MB / 0.6039 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.679e-05/0.7523, allocations: 36 kB / 0.604 GB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.382e-05/0.7524, allocations: 369.9 kB / 0.6043 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009419/0.7534, allocations: 0.7613 MB / 0.605 GB, free: 9.281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.7545, allocations: 1.283 MB / 0.6063 GB, free: 7.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.7556, allocations: 0.9472 MB / 0.6072 GB, free: 6.828 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.7556, allocations: 4 kB / 0.6072 GB, free: 6.824 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.003696/0.7593, allocations: 2.807 MB / 0.61 GB, free: 3.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001914/0.7613, allocations: 6.426 MB / 0.6162 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.7613, allocations: 19.94 kB / 0.6163 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.7626, allocations: 0.5233 MB / 0.6168 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.7641, allocations: 379.4 kB / 0.6171 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007648/0.7717, allocations: 7.405 MB / 0.6244 GB, free: 4.301 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.7735, allocations: 95.83 kB / 0.6245 GB, free: 4.207 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.7736, allocations: 72 kB / 0.6245 GB, free: 4.137 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.7737, allocations: 4.188 kB / 0.6245 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004022/0.7777, allocations: 2.581 MB / 0.6271 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.7777, allocations: 16 kB / 0.6271 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.7788, allocations: 0.515 MB / 0.6276 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.7802, allocations: 371.4 kB / 0.6279 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007789/0.788, allocations: 7.389 MB / 0.6351 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/0.7898, allocations: 95.8 kB / 0.6352 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.79, allocations: 71.98 kB / 0.6353 GB, free: 8.652 MB / 410.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 (191): * Single equations (assignments): 187 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002189/0.7922, allocations: 1.075 MB / 0.6364 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004551/0.7926, allocations: 209.5 kB / 0.6366 GB, free: 7.359 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004144/0.7968, allocations: 2.533 MB / 0.639 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.7968, allocations: 23.89 kB / 0.639 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.7968, allocations: 4 kB / 0.6391 GB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.7969, allocations: 11.91 kB / 0.6391 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1912/0.988, allocations: 5.459 MB / 0.6444 GB, free: 89.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.9881, allocations: 0 / 0.6444 GB, free: 89.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008976/0.989, allocations: 199.3 kB / 0.6446 GB, free: 89.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.9903, allocations: 0.6503 MB / 0.6452 GB, free: 89.87 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.885e-05/0.9904, allocations: 34.83 kB / 0.6453 GB, free: 89.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008611/0.999, allocations: 11.52 MB / 0.6565 GB, free: 83.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9991, allocations: 11.84 kB / 0.6565 GB, free: 83.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00453/1.004, allocations: 3.819 MB / 0.6602 GB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009567/1.005, allocations: 475.9 kB / 0.6607 GB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/1.005, allocations: 32.44 kB / 0.6607 GB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009409/1.006, allocations: 80.94 kB / 0.6608 GB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/1.006, allocations: 126 kB / 0.6609 GB, free: 82.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.635e-05/1.006, allocations: 43.38 kB / 0.661 GB, free: 82.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001597/1.008, allocations: 1.293 MB / 0.6622 GB, free: 82.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.008, allocations: 9.781 kB / 0.6622 GB, free: 82.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003208/1.011, allocations: 1.111 MB / 0.6633 GB, free: 82.47 MB / 410.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 (96): * Single equations (assignments): 91 * 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%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.00503/1.016, allocations: 5.229 MB / 0.6684 GB, free: 80.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00519/1.021, allocations: 4.242 MB / 0.6726 GB, free: 79.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.021, allocations: 1.125 kB / 0.6726 GB, free: 79.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/1.024, allocations: 1.816 MB / 0.6744 GB, free: 79.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/1.026, allocations: 0.5968 MB / 0.6749 GB, free: 79.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02639/1.053, allocations: 28.07 MB / 0.7023 GB, free: 60.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/1.055, allocations: 2.375 MB / 0.7047 GB, free: 59.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001859/1.056, allocations: 0.5359 MB / 0.7052 GB, free: 59.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/1.058, allocations: 1.153 MB / 0.7063 GB, free: 58.67 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/1.058, allocations: 0 / 0.7063 GB, free: 58.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07765/1.135, allocations: 64.11 MB / 0.7689 GB, free: 10.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001175/1.135, allocations: 246.2 kB / 0.7692 GB, free: 10.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.573/4.708, allocations: 0 / 0.7692 GB, free: 10.21 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat