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.00158/0.00158, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.85/1.85, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000879/0.0008792, allocations: 82.06 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/2.004e-05, allocations: 8 kB / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4446/0.5654, allocations: 115.9 MB / 0.4917 GB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5657, allocations: 97.56 kB / 0.4918 GB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4591/1.025, allocations: 76.23 MB / 0.5662 GB, free: 96.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.025, allocations: 0 / 0.5662 GB, free: 96.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002846/1.025, allocations: 86.86 kB / 0.5663 GB, free: 96.81 MB / 426.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.01013/1.035, allocations: 3.211 MB / 0.5694 GB, free: 95.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/1.035, allocations: 8.875 kB / 0.5694 GB, free: 95.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004014/1.039, allocations: 0.593 MB / 0.57 GB, free: 95.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009059/1.048, allocations: 3.126 MB / 0.5731 GB, free: 94.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/1.049, allocations: 102.6 kB / 0.5732 GB, free: 94.81 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/1.05, allocations: 189.5 kB / 0.5734 GB, free: 94.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007046/1.057, allocations: 3.068 MB / 0.5764 GB, free: 94.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006068/1.063, allocations: 3.605 MB / 0.5799 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.618e-05/1.063, allocations: 5.625 kB / 0.5799 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/1.064, allocations: 3.875 kB / 0.5799 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/1.064, allocations: 140 kB / 0.58 GB, free: 94.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02023/1.084, allocations: 13.21 MB / 0.5929 GB, free: 88.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004204/1.088, allocations: 5.78 MB / 0.5986 GB, free: 83.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/1.09, allocations: 1.277 MB / 0.5998 GB, free: 82.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004981/1.095, allocations: 3.084 MB / 0.6028 GB, free: 81.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/1.095, allocations: 51.22 kB / 0.6029 GB, free: 81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 3.487e-06/1.095, allocations: 0 / 0.6029 GB, free: 81 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.006972/1.102, allocations: 4.495 MB / 0.6073 GB, free: 78.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/1.102, allocations: 100.1 kB / 0.6073 GB, free: 78.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/1.104, allocations: 1.389 MB / 0.6087 GB, free: 78.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.023e-05/1.104, allocations: 25.7 kB / 0.6087 GB, free: 78.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007475/1.105, allocations: 1.467 MB / 0.6102 GB, free: 76.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/1.105, allocations: 471 kB / 0.6106 GB, free: 76.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/1.105, allocations: 3.094 kB / 0.6106 GB, free: 76.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/1.105, allocations: 369.2 kB / 0.611 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007847/1.106, allocations: 0.6785 MB / 0.6116 GB, free: 75.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/1.107, allocations: 1.199 MB / 0.6128 GB, free: 74.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/1.108, allocations: 0.9496 MB / 0.6137 GB, free: 74.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/1.108, allocations: 9.812 kB / 0.6137 GB, free: 74.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003794/1.112, allocations: 2.55 MB / 0.6162 GB, free: 73.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001195/1.113, allocations: 6.533 MB / 0.6226 GB, free: 66.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/1.114, allocations: 29.84 kB / 0.6226 GB, free: 66.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/1.115, allocations: 0.4987 MB / 0.6231 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.116, allocations: 372.6 kB / 0.6235 GB, free: 66.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005641/1.121, allocations: 6.985 MB / 0.6303 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/1.123, allocations: 57.75 kB / 0.6304 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/1.123, allocations: 77.19 kB / 0.6304 GB, free: 60.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/1.123, allocations: 9 kB / 0.6304 GB, free: 60.93 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00319/1.126, allocations: 2.323 MB / 0.6327 GB, free: 59.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/1.126, allocations: 22.5 kB / 0.6327 GB, free: 59.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008743/1.127, allocations: 0.5035 MB / 0.6332 GB, free: 59.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/1.128, allocations: 358.5 kB / 0.6336 GB, free: 59.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005078/1.134, allocations: 6.998 MB / 0.6404 GB, free: 54.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/1.135, allocations: 48.25 kB / 0.6404 GB, free: 54.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/1.135, allocations: 82.52 kB / 0.6405 GB, free: 54.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * 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.0003433/1.136, allocations: 153 kB / 0.6407 GB, free: 54.34 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002928/1.138, allocations: 2.228 MB / 0.6428 GB, free: 53.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/1.139, allocations: 202.4 kB / 0.643 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/1.142, allocations: 2.346 MB / 0.6453 GB, free: 51.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/1.142, allocations: 14.72 kB / 0.6453 GB, free: 51.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.142, allocations: 4 kB / 0.6453 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/1.142, allocations: 10.94 kB / 0.6454 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006413/1.148, allocations: 4.813 MB / 0.6501 GB, free: 47.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/1.148, allocations: 3.469 kB / 0.6501 GB, free: 47.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007255/1.149, allocations: 186.3 kB / 0.6502 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/1.15, allocations: 0.6371 MB / 0.6509 GB, free: 46.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/1.15, allocations: 8 kB / 0.6509 GB, free: 46.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007886/1.158, allocations: 10.89 MB / 0.6615 GB, free: 35.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.158, allocations: 7.203 kB / 0.6615 GB, free: 35.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004378/1.163, allocations: 3.602 MB / 0.665 GB, free: 32.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009421/1.164, allocations: 436.4 kB / 0.6654 GB, free: 31.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/1.164, allocations: 7.938 kB / 0.6654 GB, free: 31.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000872/1.165, allocations: 67.48 kB / 0.6655 GB, free: 31.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/1.165, allocations: 114.5 kB / 0.6656 GB, free: 31.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/1.165, allocations: 42.62 kB / 0.6657 GB, free: 31.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001398/1.167, allocations: 1.044 MB / 0.6667 GB, free: 30.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.167, allocations: 0 / 0.6667 GB, free: 30.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003243/1.17, allocations: 0.9841 MB / 0.6676 GB, free: 29.86 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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.004751/1.175, allocations: 5.019 MB / 0.6725 GB, free: 25.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004719/1.179, allocations: 3.921 MB / 0.6764 GB, free: 21.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.179, allocations: 1.438 kB / 0.6764 GB, free: 21.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002027/1.181, allocations: 1.668 MB / 0.678 GB, free: 19.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/1.185, allocations: 0.4885 MB / 0.6785 GB, free: 19.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00965/1.195, allocations: 5.289 MB / 0.6836 GB, free: 14.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/1.196, allocations: 2.384 MB / 0.686 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002442/1.199, allocations: 0.7329 MB / 0.6867 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.2, allocations: 1.12 MB / 0.6878 GB, free: 11.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.253e-06/1.2, allocations: 0 / 0.6878 GB, free: 11.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3721/1.572, allocations: 56.61 MB / 0.7431 GB, free: 92.46 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002394/1.572, allocations: 191.4 kB / 0.7432 GB, free: 92.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.59/5.162, allocations: 3.188 kB / 0.7432 GB, free: 92.27 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