Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.00158, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.944/1.944, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001229/0.001228, allocations: 96.36 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003835, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3276, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1891/0.5168, allocations: 115.7 MB / 490.2 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003295/0.5171, allocations: 103.9 kB / 490.3 MB, free: 12.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5477/1.065, allocations: 76.95 MB / 0.554 GB, free: 62.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.065, allocations: 0 / 0.554 GB, free: 62.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003389/1.065, allocations: 83.92 kB / 0.5541 GB, free: 62.21 MB / 378.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.01412/1.079, allocations: 3.552 MB / 0.5575 GB, free: 58.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/1.079, allocations: 8.031 kB / 0.5575 GB, free: 58.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004463/1.084, allocations: 0.6048 MB / 0.5581 GB, free: 57.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01146/1.095, allocations: 3.163 MB / 0.5612 GB, free: 54.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002622/1.096, allocations: 230.2 kB / 0.5614 GB, free: 54.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001162/1.097, allocations: 315.9 kB / 0.5617 GB, free: 54.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/1.109, allocations: 4.121 MB / 0.5658 GB, free: 49.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/1.109, allocations: 4 kB / 0.5658 GB, free: 49.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007438/1.11, allocations: 128 kB / 0.5659 GB, free: 49.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/1.11, allocations: 146.1 kB / 0.566 GB, free: 49.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0104/1.121, allocations: 3.362 MB / 0.5693 GB, free: 46.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03254/1.153, allocations: 13.82 MB / 0.5828 GB, free: 32.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008049/1.161, allocations: 5.936 MB / 0.5886 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009205/1.171, allocations: 3.244 MB / 0.5918 GB, free: 22.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/1.171, allocations: 51.88 kB / 0.5918 GB, free: 22.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 4.979e-06/1.171, allocations: 0 / 0.5918 GB, free: 22.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02171/1.192, allocations: 6.788 MB / 0.5985 GB, free: 15.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/1.192, allocations: 98.41 kB / 0.5985 GB, free: 14.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003912/1.196, allocations: 1.686 MB / 0.6002 GB, free: 13.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00035/1.197, allocations: 53.7 kB / 0.6002 GB, free: 13.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009874/1.198, allocations: 1.368 MB / 0.6016 GB, free: 11.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006509/1.198, allocations: 0.4891 MB / 0.6021 GB, free: 11.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/1.199, allocations: 36 kB / 0.6021 GB, free: 11.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/1.199, allocations: 382.8 kB / 0.6025 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/1.201, allocations: 0.7613 MB / 0.6032 GB, free: 10.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/1.203, allocations: 1.283 MB / 0.6045 GB, free: 8.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/1.205, allocations: 0.9433 MB / 0.6054 GB, free: 7.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/1.205, allocations: 4 kB / 0.6054 GB, free: 7.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006321/1.212, allocations: 2.676 MB / 0.608 GB, free: 4.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001624/1.213, allocations: 6.185 MB / 0.614 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.216e-05/1.213, allocations: 19.98 kB / 0.6141 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/1.216, allocations: 0.5193 MB / 0.6146 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003032/1.219, allocations: 375.4 kB / 0.6149 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/1.232, allocations: 7.403 MB / 0.6221 GB, free: 5.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/1.235, allocations: 99.89 kB / 0.6222 GB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004281/1.235, allocations: 75.98 kB / 0.6223 GB, free: 5.398 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/1.235, allocations: 4 kB / 0.6223 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007923/1.243, allocations: 2.581 MB / 0.6248 GB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.55e-05/1.244, allocations: 16 kB / 0.6249 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/1.246, allocations: 0.5192 MB / 0.6254 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003004/1.249, allocations: 367.4 kB / 0.6257 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/1.262, allocations: 7.456 MB / 0.633 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/1.263, allocations: 87.84 kB / 0.6331 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002941/1.264, allocations: 75.95 kB / 0.6331 GB, free: 9.855 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 187 * 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.003244/1.267, allocations: 1.078 MB / 0.6342 GB, free: 8.766 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007469/1.268, allocations: 205.5 kB / 0.6344 GB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008011/1.276, allocations: 2.537 MB / 0.6369 GB, free: 5.961 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.417e-05/1.276, allocations: 12 kB / 0.6369 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.276, allocations: 7.953 kB / 0.6369 GB, free: 5.941 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.239e-05/1.276, allocations: 7.969 kB / 0.6369 GB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/1.293, allocations: 5.464 MB / 0.6422 GB, free: 324 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/1.293, allocations: 0 / 0.6422 GB, free: 324 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/1.295, allocations: 196 kB / 0.6424 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3085/1.603, allocations: 0.6446 MB / 0.6431 GB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000291/1.604, allocations: 33.08 kB / 0.6431 GB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.62, allocations: 11.53 MB / 0.6543 GB, free: 83.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.62, allocations: 2.844 kB / 0.6543 GB, free: 83.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009176/1.629, allocations: 3.828 MB / 0.6581 GB, free: 82.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.631, allocations: 470.5 kB / 0.6585 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000704/1.632, allocations: 33.98 kB / 0.6586 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002233/1.634, allocations: 89.66 kB / 0.6587 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006251/1.635, allocations: 114.6 kB / 0.6588 GB, free: 82.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.635, allocations: 46.16 kB / 0.6588 GB, free: 82.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003335/1.638, allocations: 1.301 MB / 0.6601 GB, free: 82.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.638, allocations: 3.375 kB / 0.6601 GB, free: 82.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006403/1.645, allocations: 1.104 MB / 0.6612 GB, free: 82.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 91 * 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.001103/1.646, allocations: 460.9 kB / 0.6616 GB, free: 82.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01013/1.656, allocations: 4.234 MB / 0.6657 GB, free: 81.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.656, allocations: 0 / 0.6657 GB, free: 81.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00448/1.661, allocations: 1.818 MB / 0.6675 GB, free: 81.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004793/1.665, allocations: 0.5978 MB / 0.6681 GB, free: 81.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/1.684, allocations: 7.115 MB / 0.675 GB, free: 78.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004502/1.688, allocations: 2.34 MB / 0.6773 GB, free: 77.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009751/1.689, allocations: 151.5 kB / 0.6775 GB, free: 77.32 MB / 410.7 MB Notification: Performance of SimCode: time 8.21e-07/1.689, allocations: 3.562 kB / 0.6775 GB, free: 77.32 MB / 410.7 MB Notification: Performance of Templates: time 0.1711/1.86, allocations: 106.5 MB / 0.7814 GB, free: 11.83 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1)