Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001669/0.001669, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001124, allocations: 96.98 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.941e-05/1.935e-05, allocations: 0 / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1373, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5037/0.6411, allocations: 117 MB / 0.5002 GB, free: 8.582 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003644/0.6415, allocations: 92.73 kB / 0.5003 GB, free: 8.539 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5142/1.156, allocations: 78.89 MB / 0.5774 GB, free: 71.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.156, allocations: 0 / 0.5774 GB, free: 71.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004122/1.156, allocations: 81.41 kB / 0.5774 GB, free: 71.69 MB / 442.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.01154/1.168, allocations: 3.237 MB / 0.5806 GB, free: 70.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.168, allocations: 9.656 kB / 0.5806 GB, free: 70.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004191/1.172, allocations: 0.5974 MB / 0.5812 GB, free: 70.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009611/1.182, allocations: 3.15 MB / 0.5843 GB, free: 69.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/1.182, allocations: 106 kB / 0.5844 GB, free: 69.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001368/1.183, allocations: 185.3 kB / 0.5845 GB, free: 69.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008383/1.192, allocations: 3.072 MB / 0.5875 GB, free: 69.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/1.202, allocations: 3.585 MB / 0.591 GB, free: 69.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001548/1.202, allocations: 10.19 kB / 0.591 GB, free: 69.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008111/1.203, allocations: 3.188 kB / 0.5911 GB, free: 69.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/1.203, allocations: 141.5 kB / 0.5912 GB, free: 69.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02448/1.228, allocations: 13.36 MB / 0.6042 GB, free: 65.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004871/1.233, allocations: 6.052 MB / 0.6101 GB, free: 61.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/1.235, allocations: 1.281 MB / 0.6114 GB, free: 61.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00643/1.241, allocations: 3.249 MB / 0.6146 GB, free: 60.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/1.241, allocations: 44.72 kB / 0.6146 GB, free: 60.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.707e-06/1.241, allocations: 0 / 0.6146 GB, free: 60.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.01028/1.251, allocations: 4.55 MB / 0.6191 GB, free: 59.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/1.251, allocations: 92.48 kB / 0.6191 GB, free: 59.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004112/1.256, allocations: 1.41 MB / 0.6205 GB, free: 59.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002368/1.256, allocations: 29.7 kB / 0.6206 GB, free: 59.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/1.257, allocations: 1.472 MB / 0.622 GB, free: 58.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005188/1.258, allocations: 457.3 kB / 0.6224 GB, free: 58.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/1.258, allocations: 0 / 0.6224 GB, free: 58.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/1.258, allocations: 375.8 kB / 0.6228 GB, free: 57.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/1.259, allocations: 0.6713 MB / 0.6234 GB, free: 57.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/1.261, allocations: 1.189 MB / 0.6246 GB, free: 57.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/1.263, allocations: 0.9905 MB / 0.6256 GB, free: 57.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.727e-05/1.263, allocations: 5.094 kB / 0.6256 GB, free: 57.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.005254/1.268, allocations: 2.54 MB / 0.6281 GB, free: 56.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001492/1.27, allocations: 6.542 MB / 0.6344 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.275e-05/1.27, allocations: 15.69 kB / 0.6345 GB, free: 49.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/1.271, allocations: 0.4907 MB / 0.6349 GB, free: 48.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/1.273, allocations: 363.2 kB / 0.6353 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/1.28, allocations: 6.801 MB / 0.6419 GB, free: 43.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/1.282, allocations: 70.94 kB / 0.642 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003812/1.282, allocations: 71.48 kB / 0.6421 GB, free: 43.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/1.282, allocations: 6.25 kB / 0.6421 GB, free: 43.78 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00551/1.288, allocations: 2.327 MB / 0.6443 GB, free: 42.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.662e-05/1.288, allocations: 17.91 kB / 0.6444 GB, free: 42.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/1.289, allocations: 494.4 kB / 0.6448 GB, free: 42.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/1.291, allocations: 357.7 kB / 0.6452 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006966/1.298, allocations: 6.788 MB / 0.6518 GB, free: 37.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/1.3, allocations: 59.09 kB / 0.6519 GB, free: 37.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003576/1.3, allocations: 75.77 kB / 0.6519 GB, free: 37.62 MB / 442.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 (188): * Single equations (assignments): 184 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0006781/1.301, allocations: 161.9 kB / 0.6521 GB, free: 37.49 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004492/1.305, allocations: 2.223 MB / 0.6542 GB, free: 36.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005913/1.306, allocations: 193.9 kB / 0.6544 GB, free: 36.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00422/1.31, allocations: 2.337 MB / 0.6567 GB, free: 35.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.31, allocations: 15.19 kB / 0.6567 GB, free: 35.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.31, allocations: 6.562 kB / 0.6567 GB, free: 35.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/1.31, allocations: 11.73 kB / 0.6567 GB, free: 35.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/1.321, allocations: 4.81 MB / 0.6614 GB, free: 33.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/1.321, allocations: 6.484 kB / 0.6615 GB, free: 33.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/1.322, allocations: 189.4 kB / 0.6616 GB, free: 33.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/1.323, allocations: 0.606 MB / 0.6622 GB, free: 32.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/1.323, allocations: 11.89 kB / 0.6622 GB, free: 32.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008799/1.332, allocations: 10.67 MB / 0.6727 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/1.332, allocations: 3.953 kB / 0.6727 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005817/1.338, allocations: 3.564 MB / 0.6761 GB, free: 22.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/1.339, allocations: 441.5 kB / 0.6766 GB, free: 22.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007461/1.34, allocations: 15.89 kB / 0.6766 GB, free: 22.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/1.342, allocations: 59.92 kB / 0.6766 GB, free: 22.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003901/1.342, allocations: 117.7 kB / 0.6767 GB, free: 22.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/1.342, allocations: 34.25 kB / 0.6768 GB, free: 22.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002617/1.345, allocations: 1.051 MB / 0.6778 GB, free: 21.86 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.345, allocations: 0 / 0.6778 GB, free: 21.86 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006186/1.351, allocations: 0.995 MB / 0.6788 GB, free: 21.83 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 86 * 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%) 5,(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.006326/1.357, allocations: 4.98 MB / 0.6836 GB, free: 18.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005222/1.363, allocations: 3.851 MB / 0.6874 GB, free: 16.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/1.363, allocations: 3.812 kB / 0.6874 GB, free: 16.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001992/1.365, allocations: 1.632 MB / 0.689 GB, free: 15.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/1.368, allocations: 0.513 MB / 0.6895 GB, free: 15.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/1.379, allocations: 5.288 MB / 0.6947 GB, free: 13.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001801/1.38, allocations: 2.38 MB / 0.697 GB, free: 12.44 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002527/1.383, allocations: 0.741 MB / 0.6977 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.384, allocations: 1.129 MB / 0.6988 GB, free: 11.41 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/1.384, allocations: 4 kB / 0.6988 GB, free: 11.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3876/1.772, allocations: 57.1 MB / 0.7546 GB, free: 70.41 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/1.772, allocations: 185.4 kB / 0.7548 GB, free: 70.22 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.913/5.685, allocations: 1.406 kB / 0.7548 GB, free: 70.22 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat