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.001701/0.001701, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.557/1.557, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.001034/0.001034, allocations: 95.73 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.678e-05/3.68e-05, allocations: 4 kB / 344 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 50.41 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4368/0.5531, allocations: 116.6 MB / 0.499 GB, free: 2.852 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.5534, allocations: 91.94 kB / 0.499 GB, free: 2.762 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4821/1.036, allocations: 77.26 MB / 0.5745 GB, free: 97.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.627e-06/1.036, allocations: 0 / 0.5745 GB, free: 97.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003709/1.036, allocations: 92.77 kB / 0.5746 GB, free: 97.82 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.01191/1.048, allocations: 3.213 MB / 0.5777 GB, free: 96.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.048, allocations: 8.906 kB / 0.5777 GB, free: 96.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001524/1.05, allocations: 444 kB / 0.5781 GB, free: 96.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003562/1.053, allocations: 0.5958 MB / 0.5787 GB, free: 96.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/1.064, allocations: 3.126 MB / 0.5818 GB, free: 95.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000343/1.064, allocations: 242 kB / 0.582 GB, free: 95.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001676/1.066, allocations: 302.8 kB / 0.5823 GB, free: 95.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01365/1.08, allocations: 4.046 MB / 0.5863 GB, free: 93.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001882/1.08, allocations: 11.59 kB / 0.5863 GB, free: 93.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00119/1.081, allocations: 139 kB / 0.5864 GB, free: 93.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002063/1.081, allocations: 147.2 kB / 0.5865 GB, free: 93.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008424/1.09, allocations: 3.264 MB / 0.5897 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03082/1.121, allocations: 13.8 MB / 0.6032 GB, free: 84.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006191/1.127, allocations: 5.839 MB / 0.6089 GB, free: 79.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002268/1.129, allocations: 1.34 MB / 0.6102 GB, free: 78.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006634/1.136, allocations: 3.178 MB / 0.6133 GB, free: 77.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/1.136, allocations: 47.25 kB / 0.6134 GB, free: 77.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 3.967e-06/1.136, allocations: 0 / 0.6134 GB, free: 77.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.009185/1.145, allocations: 4.543 MB / 0.6178 GB, free: 74.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/1.145, allocations: 94.73 kB / 0.6179 GB, free: 74.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/1.149, allocations: 1.664 MB / 0.6195 GB, free: 73.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002428/1.15, allocations: 53.08 kB / 0.6196 GB, free: 73.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/1.151, allocations: 1.454 MB / 0.621 GB, free: 72.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000533/1.151, allocations: 492.2 kB / 0.6215 GB, free: 72.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/1.151, allocations: 34.72 kB / 0.6215 GB, free: 72.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/1.152, allocations: 369.1 kB / 0.6218 GB, free: 71.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/1.153, allocations: 0.7143 MB / 0.6225 GB, free: 71.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/1.154, allocations: 1.244 MB / 0.6238 GB, free: 70.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/1.156, allocations: 0.9129 MB / 0.6246 GB, free: 70.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/1.156, allocations: 3.312 kB / 0.6247 GB, free: 70.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.004503/1.16, allocations: 2.672 MB / 0.6273 GB, free: 69.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001409/1.162, allocations: 6.6 MB / 0.6337 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/1.162, allocations: 16.97 kB / 0.6337 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/1.163, allocations: 0.5212 MB / 0.6342 GB, free: 61.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/1.164, allocations: 361.2 kB / 0.6346 GB, free: 61.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006333/1.171, allocations: 7.242 MB / 0.6416 GB, free: 54.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002331/1.173, allocations: 93.48 kB / 0.6417 GB, free: 54.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003753/1.173, allocations: 83.31 kB / 0.6418 GB, free: 54.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/1.173, allocations: 4 kB / 0.6418 GB, free: 54.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004057/1.177, allocations: 2.464 MB / 0.6442 GB, free: 52.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.603e-05/1.178, allocations: 16.41 kB / 0.6442 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/1.179, allocations: 0.5251 MB / 0.6448 GB, free: 52.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/1.18, allocations: 358.9 kB / 0.6451 GB, free: 51.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00585/1.186, allocations: 7.228 MB / 0.6522 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/1.188, allocations: 89.73 kB / 0.6522 GB, free: 44.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003654/1.188, allocations: 78.33 kB / 0.6523 GB, free: 44.62 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.0006096/1.189, allocations: 217.2 kB / 0.6525 GB, free: 44.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006534/1.189, allocations: 213.1 kB / 0.6527 GB, free: 44.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004321/1.194, allocations: 2.431 MB / 0.6551 GB, free: 42.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/1.194, allocations: 16 kB / 0.6551 GB, free: 42.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.81e-05/1.194, allocations: 8 kB / 0.6551 GB, free: 42.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/1.194, allocations: 15.02 kB / 0.6551 GB, free: 42.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009443/1.203, allocations: 5.268 MB / 0.6603 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/1.203, allocations: 4 kB / 0.6603 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/1.204, allocations: 187.1 kB / 0.6605 GB, free: 37.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/1.206, allocations: 0.6516 MB / 0.6611 GB, free: 36.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/1.206, allocations: 31.98 kB / 0.6611 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008877/1.215, allocations: 11.28 MB / 0.6721 GB, free: 24.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/1.215, allocations: 4 kB / 0.6722 GB, free: 24.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/1.22, allocations: 3.679 MB / 0.6757 GB, free: 20.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/1.221, allocations: 466.4 kB / 0.6762 GB, free: 20.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006484/1.222, allocations: 31.25 kB / 0.6762 GB, free: 20.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/1.223, allocations: 83.92 kB / 0.6763 GB, free: 20.15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/1.224, allocations: 121 kB / 0.6764 GB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/1.224, allocations: 35.98 kB / 0.6764 GB, free: 19.99 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002731/1.226, allocations: 1.279 MB / 0.6777 GB, free: 18.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.226, allocations: 4 kB / 0.6777 GB, free: 18.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005614/1.232, allocations: 1.113 MB / 0.6788 GB, free: 17.57 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.005854/1.238, allocations: 5.158 MB / 0.6838 GB, free: 12.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005602/1.244, allocations: 4.137 MB / 0.6879 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.244, allocations: 0 / 0.6879 GB, free: 8.098 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/1.246, allocations: 1.741 MB / 0.6896 GB, free: 6.293 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/1.25, allocations: 0.6073 MB / 0.6902 GB, free: 5.727 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/1.264, allocations: 5.475 MB / 0.6955 GB, free: 216 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003618/1.268, allocations: 2.369 MB / 0.6978 GB, free: 13.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003984/1.272, allocations: 0.7998 MB / 0.6986 GB, free: 13.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002186/1.274, allocations: 1.12 MB / 0.6997 GB, free: 11.92 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/1.274, allocations: 0 / 0.6997 GB, free: 11.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/1.669, allocations: 66.95 MB / 0.7651 GB, free: 91.18 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/1.67, allocations: 224.6 kB / 0.7653 GB, free: 90.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.148/5.818, allocations: 7.25 kB / 0.7653 GB, free: 90.91 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