Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 223.2 MB / 240.3 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008695/0.0008695, allocations: 97.5 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002639, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2289, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.6046, allocations: 116.6 MB / 0.5061 GB, free: 49.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.605, allocations: 98.27 kB / 0.5062 GB, free: 49.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1744/0.7794, allocations: 77.24 MB / 0.5816 GB, free: 21.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.7794, allocations: 0 / 0.5816 GB, free: 21.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003867/0.7798, allocations: 79.94 kB / 0.5817 GB, free: 21.88 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.01218/0.792, allocations: 3.579 MB / 0.5852 GB, free: 18.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.7921, allocations: 8.031 kB / 0.5852 GB, free: 18.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002131/0.7942, allocations: 446.9 kB / 0.5856 GB, free: 17.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004147/0.7984, allocations: 0.6006 MB / 0.5862 GB, free: 17.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009511/0.8079, allocations: 3.162 MB / 0.5893 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.8082, allocations: 238.2 kB / 0.5895 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001171/0.8094, allocations: 308.6 kB / 0.5898 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.8202, allocations: 4.112 MB / 0.5938 GB, free: 9.137 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001719/0.8204, allocations: 11.94 kB / 0.5938 GB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00107/0.8215, allocations: 136 kB / 0.594 GB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001888/0.8217, allocations: 142.1 kB / 0.5941 GB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007592/0.8293, allocations: 3.346 MB / 0.5974 GB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02697/0.8563, allocations: 13.82 MB / 0.6109 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005669/0.862, allocations: 5.924 MB / 0.6166 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006105/0.8681, allocations: 3.244 MB / 0.6198 GB, free: 13.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.8682, allocations: 51.83 kB / 0.6199 GB, free: 13.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 2.725e-06/0.8682, allocations: 0 / 0.6199 GB, free: 13.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.01324/0.8815, allocations: 6.796 MB / 0.6265 GB, free: 6.301 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.8815, allocations: 94.42 kB / 0.6266 GB, free: 6.191 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.8843, allocations: 1.686 MB / 0.6282 GB, free: 4.469 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.8844, allocations: 53.7 kB / 0.6283 GB, free: 4.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000949/0.8854, allocations: 1.447 MB / 0.6297 GB, free: 2.945 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.8857, allocations: 0.4929 MB / 0.6302 GB, free: 2.445 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.755e-05/0.8858, allocations: 36 kB / 0.6302 GB, free: 2.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.886, allocations: 373.9 kB / 0.6306 GB, free: 2.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.8872, allocations: 0.7652 MB / 0.6313 GB, free: 1.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.8886, allocations: 1.279 MB / 0.6326 GB, free: 15.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.89, allocations: 0.9511 MB / 0.6335 GB, free: 14.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.89, allocations: 7.953 kB / 0.6335 GB, free: 14.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004245/0.8942, allocations: 2.749 MB / 0.6362 GB, free: 12.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002595/0.8969, allocations: 6.426 MB / 0.6425 GB, free: 5.078 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.8969, allocations: 19.95 kB / 0.6425 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.8984, allocations: 0.5185 MB / 0.643 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.9001, allocations: 371.4 kB / 0.6433 GB, free: 4.164 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008559/0.9087, allocations: 7.41 MB / 0.6506 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.9106, allocations: 99.83 kB / 0.6507 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001916/0.9108, allocations: 68 kB / 0.6507 GB, free: 12.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.9108, allocations: 6.656 kB / 0.6508 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003977/0.9148, allocations: 2.527 MB / 0.6532 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/0.9148, allocations: 19.98 kB / 0.6532 GB, free: 9.605 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.916, allocations: 0.515 MB / 0.6537 GB, free: 9.078 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.9173, allocations: 371.4 kB / 0.6541 GB, free: 8.715 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007212/0.9245, allocations: 7.404 MB / 0.6613 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.9265, allocations: 87.88 kB / 0.6614 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.9267, allocations: 83.94 kB / 0.6615 GB, free: 0.7344 MB / 442.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.2172/1.144, allocations: 1.059 MB / 0.6625 GB, free: 92.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006271/1.145, allocations: 212.3 kB / 0.6627 GB, free: 92.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004296/1.149, allocations: 2.545 MB / 0.6652 GB, free: 92.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/1.149, allocations: 11.62 kB / 0.6652 GB, free: 92.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.149, allocations: 3.938 kB / 0.6652 GB, free: 92.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/1.149, allocations: 11.31 kB / 0.6652 GB, free: 92.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008024/1.157, allocations: 5.427 MB / 0.6705 GB, free: 91.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/1.157, allocations: 3.219 kB / 0.6705 GB, free: 91.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008454/1.158, allocations: 197.1 kB / 0.6707 GB, free: 91.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/1.159, allocations: 0.6567 MB / 0.6714 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/1.159, allocations: 32.58 kB / 0.6714 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009955/1.169, allocations: 11.52 MB / 0.6827 GB, free: 85.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/1.169, allocations: 3.375 kB / 0.6827 GB, free: 85.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005671/1.175, allocations: 3.825 MB / 0.6864 GB, free: 84.44 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.176, allocations: 479.8 kB / 0.6868 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/1.177, allocations: 26.56 kB / 0.6869 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009974/1.178, allocations: 84.94 kB / 0.687 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004096/1.178, allocations: 123.2 kB / 0.6871 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.529e-05/1.178, allocations: 40.41 kB / 0.6871 GB, free: 84.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00232/1.181, allocations: 1.3 MB / 0.6884 GB, free: 84.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.432e-06/1.181, allocations: 0 / 0.6884 GB, free: 84.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004456/1.185, allocations: 1.116 MB / 0.6895 GB, free: 84.2 MB / 442.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%) 8,(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.005395/1.19, allocations: 5.256 MB / 0.6946 GB, free: 82.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005316/1.196, allocations: 4.252 MB / 0.6988 GB, free: 81.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.196, allocations: 0 / 0.6988 GB, free: 81.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/1.198, allocations: 1.803 MB / 0.7005 GB, free: 80.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/1.201, allocations: 0.6021 MB / 0.7011 GB, free: 80.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03017/1.231, allocations: 27.95 MB / 0.7284 GB, free: 61.99 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/1.233, allocations: 2.377 MB / 0.7307 GB, free: 60.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002128/1.235, allocations: 0.5356 MB / 0.7312 GB, free: 60.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/1.236, allocations: 1.144 MB / 0.7324 GB, free: 59.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/1.236, allocations: 3.781 kB / 0.7324 GB, free: 59.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0866/1.323, allocations: 64.22 MB / 0.7951 GB, free: 19.21 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/1.323, allocations: 274.2 kB / 0.7953 GB, free: 18.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/5.173, allocations: 0 / 0.7953 GB, free: 18.86 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat