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.001114/0.001114, allocations: 172.7 kB / 14.1 MB, free: 1.223 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.349/1.349, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008329/0.0008328, allocations: 78.67 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.195e-05/2.198e-05, allocations: 0 / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07361/0.07365, allocations: 47.56 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3018/0.3755, allocations: 115.6 MB / 485.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.3758, allocations: 85.89 kB / 485.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.358/0.7338, allocations: 76.98 MB / 0.5496 GB, free: 92.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.7339, allocations: 1.406 kB / 0.5496 GB, free: 92.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002027/0.7341, allocations: 84.09 kB / 0.5497 GB, free: 92.19 MB / 410.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.006219/0.7403, allocations: 3.203 MB / 0.5528 GB, free: 90.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.7403, allocations: 7.844 kB / 0.5528 GB, free: 90.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005961/0.7409, allocations: 445.8 kB / 0.5532 GB, free: 90.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.7431, allocations: 0.5898 MB / 0.5538 GB, free: 90.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005836/0.7489, allocations: 3.137 MB / 0.5569 GB, free: 90.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.7491, allocations: 234.5 kB / 0.5571 GB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005421/0.7496, allocations: 302.6 kB / 0.5574 GB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.755, allocations: 4.056 MB / 0.5613 GB, free: 89.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.007e-05/0.7551, allocations: 9.062 kB / 0.5614 GB, free: 89.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002543/0.7554, allocations: 132.3 kB / 0.5615 GB, free: 89.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.059e-05/0.7555, allocations: 146.1 kB / 0.5616 GB, free: 89.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004305/0.7598, allocations: 3.275 MB / 0.5648 GB, free: 89.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.7749, allocations: 13.8 MB / 0.5783 GB, free: 81.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00402/0.7789, allocations: 5.852 MB / 0.584 GB, free: 76.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.7806, allocations: 1.331 MB / 0.5853 GB, free: 76.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004314/0.7849, allocations: 3.184 MB / 0.5884 GB, free: 74.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.785, allocations: 50.34 kB / 0.5885 GB, free: 74.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 2.675e-06/0.785, allocations: 0 / 0.5885 GB, free: 74.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.005762/0.7907, allocations: 4.533 MB / 0.5929 GB, free: 72.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.7908, allocations: 93.39 kB / 0.593 GB, free: 72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002091/0.7929, allocations: 1.676 MB / 0.5946 GB, free: 71.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.592e-05/0.793, allocations: 49.05 kB / 0.5947 GB, free: 71.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005823/0.7936, allocations: 1.462 MB / 0.5961 GB, free: 70.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.7938, allocations: 486.8 kB / 0.5966 GB, free: 69.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.302e-05/0.7939, allocations: 34.47 kB / 0.5966 GB, free: 69.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.768e-05/0.7939, allocations: 378.5 kB / 0.597 GB, free: 69.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009092/0.7949, allocations: 0.7162 MB / 0.5977 GB, free: 69.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000985/0.7959, allocations: 1.252 MB / 0.5989 GB, free: 68.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.7969, allocations: 0.9115 MB / 0.5998 GB, free: 67.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.797, allocations: 10.91 kB / 0.5998 GB, free: 67.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003291/0.8002, allocations: 2.664 MB / 0.6024 GB, free: 66.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008438/0.8011, allocations: 6.607 MB / 0.6088 GB, free: 59.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.8011, allocations: 18.95 kB / 0.6088 GB, free: 59.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.8022, allocations: 0.5161 MB / 0.6094 GB, free: 59.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.8034, allocations: 366.9 kB / 0.6097 GB, free: 59.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005511/0.809, allocations: 7.242 MB / 0.6168 GB, free: 53.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.8107, allocations: 97.66 kB / 0.6169 GB, free: 53.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.8109, allocations: 72.94 kB / 0.6169 GB, free: 53.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.8109, allocations: 7.062 kB / 0.6169 GB, free: 53.78 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003184/0.8141, allocations: 2.473 MB / 0.6194 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.8141, allocations: 17.38 kB / 0.6194 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009268/0.8151, allocations: 0.5193 MB / 0.6199 GB, free: 52.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.8163, allocations: 357.2 kB / 0.6202 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005427/0.8217, allocations: 7.24 MB / 0.6273 GB, free: 45.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.8233, allocations: 89.11 kB / 0.6274 GB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.8234, allocations: 75.23 kB / 0.6275 GB, free: 44.89 MB / 410.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.0003027/0.8237, allocations: 223.5 kB / 0.6277 GB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/0.824, allocations: 205.5 kB / 0.6279 GB, free: 44.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.8273, allocations: 2.434 MB / 0.6302 GB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.8273, allocations: 23.84 kB / 0.6303 GB, free: 42.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.8274, allocations: 4 kB / 0.6303 GB, free: 42.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.8274, allocations: 3.938 kB / 0.6303 GB, free: 42.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006784/0.8342, allocations: 5.28 MB / 0.6354 GB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.8342, allocations: 4 kB / 0.6354 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006936/0.8349, allocations: 181.3 kB / 0.6356 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001296/0.8362, allocations: 0.6614 MB / 0.6362 GB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.8363, allocations: 32 kB / 0.6363 GB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008052/0.8443, allocations: 11.27 MB / 0.6473 GB, free: 25.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8444, allocations: 0 / 0.6473 GB, free: 25.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004165/0.8485, allocations: 3.658 MB / 0.6509 GB, free: 22.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000844/0.8494, allocations: 461.6 kB / 0.6513 GB, free: 22.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.8496, allocations: 31.94 kB / 0.6513 GB, free: 22.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00097/0.8506, allocations: 87.78 kB / 0.6514 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.8508, allocations: 115.8 kB / 0.6515 GB, free: 21.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-05/0.8509, allocations: 43.28 kB / 0.6516 GB, free: 21.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001551/0.8525, allocations: 1.282 MB / 0.6528 GB, free: 20.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.8525, allocations: 0 / 0.6528 GB, free: 20.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002979/0.8555, allocations: 1.118 MB / 0.6539 GB, free: 19.57 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 () * 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.00442/0.8599, allocations: 5.106 MB / 0.6589 GB, free: 14.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004638/0.8645, allocations: 4.147 MB / 0.6629 GB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.8646, allocations: 4 kB / 0.6629 GB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.8665, allocations: 1.74 MB / 0.6646 GB, free: 9.152 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.8688, allocations: 0.5857 MB / 0.6652 GB, free: 8.688 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008097/0.8769, allocations: 5.562 MB / 0.6707 GB, free: 3.797 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/0.8783, allocations: 2.383 MB / 0.673 GB, free: 1.734 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002276/0.8806, allocations: 0.7937 MB / 0.6738 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.8817, allocations: 1.129 MB / 0.6749 GB, free: 15.86 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.8817, allocations: 8 kB / 0.6749 GB, free: 15.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2777/1.159, allocations: 66.81 MB / 0.7401 GB, free: 88.61 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/1.16, allocations: 202.7 kB / 0.7403 GB, free: 88.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.751/4.911, allocations: 0 / 0.7403 GB, free: 88.39 MB / 426.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