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.001033/0.001033, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007846/0.0007845, allocations: 86.72 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.04e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4185/0.5279, allocations: 115.2 MB / 478.4 MB, free: 12.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.5283, allocations: 88.7 kB / 478.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4457/0.974, allocations: 75.95 MB / 0.5414 GB, free: 89.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.9741, allocations: 0 / 0.5414 GB, free: 89.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003224/0.9744, allocations: 88.66 kB / 0.5415 GB, free: 89.39 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.01134/0.9858, allocations: 3.2 MB / 0.5446 GB, free: 88.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.887e-05/0.9859, allocations: 13.77 kB / 0.5446 GB, free: 88.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004794/0.9907, allocations: 0.5913 MB / 0.5452 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/1.001, allocations: 3.134 MB / 0.5483 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/1.001, allocations: 100.5 kB / 0.5484 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/1.002, allocations: 182.7 kB / 0.5485 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007121/1.01, allocations: 3.072 MB / 0.5515 GB, free: 87.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006257/1.016, allocations: 3.603 MB / 0.5551 GB, free: 87.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/1.016, allocations: 11.22 kB / 0.5551 GB, free: 87.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/1.016, allocations: 7.375 kB / 0.5551 GB, free: 87.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/1.017, allocations: 140.9 kB / 0.5552 GB, free: 87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02228/1.039, allocations: 13.21 MB / 0.5681 GB, free: 83.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004454/1.043, allocations: 5.784 MB / 0.5738 GB, free: 79.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/1.045, allocations: 1.275 MB / 0.575 GB, free: 78.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006183/1.051, allocations: 3.08 MB / 0.578 GB, free: 77.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/1.051, allocations: 50.59 kB / 0.5781 GB, free: 77.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 6.212e-06/1.051, allocations: 0 / 0.5781 GB, free: 77.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.008585/1.06, allocations: 4.497 MB / 0.5824 GB, free: 74.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/1.06, allocations: 98.67 kB / 0.5825 GB, free: 74.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002293/1.062, allocations: 1.4 MB / 0.5839 GB, free: 74.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002213/1.063, allocations: 25.7 kB / 0.5839 GB, free: 74.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007811/1.063, allocations: 1.462 MB / 0.5854 GB, free: 72.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/1.064, allocations: 463.3 kB / 0.5858 GB, free: 72.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/1.064, allocations: 0 / 0.5858 GB, free: 72.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/1.064, allocations: 375 kB / 0.5862 GB, free: 72.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008611/1.065, allocations: 0.6804 MB / 0.5868 GB, free: 72.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/1.066, allocations: 1.199 MB / 0.588 GB, free: 71.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/1.067, allocations: 0.9493 MB / 0.5889 GB, free: 70.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/1.067, allocations: 3.781 kB / 0.5889 GB, free: 70.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003779/1.071, allocations: 2.562 MB / 0.5914 GB, free: 69.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001332/1.073, allocations: 6.536 MB / 0.5978 GB, free: 62.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/1.073, allocations: 16.69 kB / 0.5978 GB, free: 62.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/1.074, allocations: 0.5034 MB / 0.5983 GB, free: 62.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/1.075, allocations: 370.2 kB / 0.5987 GB, free: 62.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005891/1.081, allocations: 6.988 MB / 0.6055 GB, free: 57.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/1.083, allocations: 64.67 kB / 0.6056 GB, free: 57.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/1.083, allocations: 73.94 kB / 0.6056 GB, free: 57.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/1.083, allocations: 3.781 kB / 0.6056 GB, free: 57.18 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00359/1.087, allocations: 2.325 MB / 0.6079 GB, free: 56.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/1.087, allocations: 14.62 kB / 0.6079 GB, free: 56.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009885/1.088, allocations: 0.5152 MB / 0.6084 GB, free: 56.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/1.089, allocations: 359.4 kB / 0.6088 GB, free: 56.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/1.095, allocations: 6.987 MB / 0.6156 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/1.097, allocations: 52.47 kB / 0.6156 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002299/1.097, allocations: 76.39 kB / 0.6157 GB, free: 50.73 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.0004327/1.098, allocations: 160.8 kB / 0.6159 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003408/1.101, allocations: 2.228 MB / 0.618 GB, free: 49.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/1.101, allocations: 195.7 kB / 0.6182 GB, free: 49.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/1.105, allocations: 2.347 MB / 0.6205 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/1.105, allocations: 14.62 kB / 0.6205 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/1.105, allocations: 7.344 kB / 0.6205 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/1.105, allocations: 7.5 kB / 0.6205 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007435/1.113, allocations: 4.822 MB / 0.6252 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/1.113, allocations: 3.938 kB / 0.6253 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008815/1.113, allocations: 178 kB / 0.6254 GB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/1.115, allocations: 0.6542 MB / 0.6261 GB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/1.115, allocations: 7.125 kB / 0.6261 GB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008345/1.123, allocations: 10.89 MB / 0.6367 GB, free: 35.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/1.123, allocations: 7.938 kB / 0.6367 GB, free: 35.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/1.129, allocations: 3.574 MB / 0.6402 GB, free: 31.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/1.13, allocations: 443.5 kB / 0.6406 GB, free: 31.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003887/1.13, allocations: 7.844 kB / 0.6406 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.131, allocations: 55.27 kB / 0.6407 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/1.132, allocations: 122.4 kB / 0.6408 GB, free: 31.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.057e-05/1.132, allocations: 43.94 kB / 0.6408 GB, free: 31.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001609/1.133, allocations: 1.044 MB / 0.6419 GB, free: 30.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.133, allocations: 0 / 0.6419 GB, free: 30.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004629/1.138, allocations: 0.9803 MB / 0.6428 GB, free: 29.42 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.005444/1.143, allocations: 4.976 MB / 0.6477 GB, free: 24.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005119/1.149, allocations: 3.922 MB / 0.6515 GB, free: 21.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.149, allocations: 0 / 0.6515 GB, free: 21.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002138/1.151, allocations: 1.674 MB / 0.6531 GB, free: 19.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/1.154, allocations: 0.4893 MB / 0.6536 GB, free: 19.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/1.166, allocations: 5.38 MB / 0.6589 GB, free: 14.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002127/1.168, allocations: 2.382 MB / 0.6612 GB, free: 12.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002645/1.171, allocations: 0.7257 MB / 0.6619 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.172, allocations: 1.12 MB / 0.663 GB, free: 11 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/1.172, allocations: 4 kB / 0.663 GB, free: 11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3482/1.52, allocations: 56.55 MB / 0.7182 GB, free: 92.12 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/1.521, allocations: 167 kB / 0.7184 GB, free: 91.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.87/5.39, allocations: 0 / 0.7184 GB, free: 91.93 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