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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007505/0.0007504, allocations: 94.73 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002401, allocations: 15.98 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 51.28 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2783/0.4623, allocations: 117.8 MB / 0.5148 GB, free: 98.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4626, allocations: 103 kB / 0.5149 GB, free: 98.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.166/0.6286, allocations: 79.75 MB / 0.5928 GB, free: 19.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.6286, allocations: 0 / 0.5928 GB, free: 19.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002697/0.6289, allocations: 91.86 kB / 0.5929 GB, free: 19.17 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.008445/0.6374, allocations: 3.556 MB / 0.5963 GB, free: 15.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.6374, allocations: 12.03 kB / 0.5964 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002771/0.6402, allocations: 0.6055 MB / 0.5969 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005171/0.6454, allocations: 2.574 MB / 0.5995 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.6456, allocations: 234.6 kB / 0.5997 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007177/0.6463, allocations: 316.3 kB / 0.6 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006985/0.6533, allocations: 4.136 MB / 0.604 GB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.609e-05/0.6534, allocations: 7.875 kB / 0.604 GB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000407/0.6539, allocations: 140 kB / 0.6042 GB, free: 7.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000107/0.654, allocations: 142.1 kB / 0.6043 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005605/0.6596, allocations: 3.346 MB / 0.6076 GB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.6806, allocations: 13.99 MB / 0.6212 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005667/0.6863, allocations: 6.182 MB / 0.6273 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002138/0.6884, allocations: 1.39 MB / 0.6286 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005902/0.6944, allocations: 3.363 MB / 0.6319 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.6944, allocations: 47.81 kB / 0.6319 GB, free: 9.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=136): time 3.376e-06/0.6945, allocations: 0 / 0.6319 GB, free: 9.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.01366/0.7081, allocations: 6.582 MB / 0.6384 GB, free: 2.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.7082, allocations: 90.42 kB / 0.6385 GB, free: 2.656 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.7116, allocations: 1.927 MB / 0.6403 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/0.7118, allocations: 45.7 kB / 0.6404 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.7128, allocations: 1.471 MB / 0.6418 GB, free: 15.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/0.7132, allocations: 481.2 kB / 0.6423 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.7133, allocations: 28 kB / 0.6423 GB, free: 14.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.7135, allocations: 377.8 kB / 0.6427 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.7148, allocations: 0.734 MB / 0.6434 GB, free: 13.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.7163, allocations: 1.269 MB / 0.6446 GB, free: 12.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002787/0.7191, allocations: 2.097 MB / 0.6467 GB, free: 9.715 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.7191, allocations: 4 kB / 0.6467 GB, free: 9.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004452/0.7236, allocations: 2.721 MB / 0.6493 GB, free: 6.949 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.7239, allocations: 0.5663 MB / 0.6499 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/0.724, allocations: 16 kB / 0.6499 GB, free: 6.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.7251, allocations: 0.495 MB / 0.6504 GB, free: 5.637 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.7266, allocations: 367.4 kB / 0.6507 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006691/0.7333, allocations: 7.046 MB / 0.6576 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.7349, allocations: 95.83 kB / 0.6577 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/0.7351, allocations: 72 kB / 0.6578 GB, free: 13.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/0.7351, allocations: 4 kB / 0.6578 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003941/0.739, allocations: 2.495 MB / 0.6602 GB, free: 11.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/0.7391, allocations: 23.97 kB / 0.6602 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.7401, allocations: 0.4992 MB / 0.6607 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.7414, allocations: 363.4 kB / 0.6611 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006648/0.7481, allocations: 7.045 MB / 0.668 GB, free: 2.789 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.7498, allocations: 91.83 kB / 0.668 GB, free: 2.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/0.75, allocations: 72 kB / 0.6681 GB, free: 2.629 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 185 * 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.002209/0.7523, allocations: 1.071 MB / 0.6692 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005217/0.7528, allocations: 205.5 kB / 0.6694 GB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1776/0.9304, allocations: 2.433 MB / 0.6717 GB, free: 89.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/0.9304, allocations: 13.8 kB / 0.6717 GB, free: 89.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.9304, allocations: 7.969 kB / 0.6718 GB, free: 89.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/0.9305, allocations: 7.578 kB / 0.6718 GB, free: 89.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007412/0.9379, allocations: 5.279 MB / 0.6769 GB, free: 88.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.9379, allocations: 3.219 kB / 0.6769 GB, free: 88.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.9386, allocations: 178.3 kB / 0.6771 GB, free: 88.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.9399, allocations: 0.636 MB / 0.6777 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.008e-05/0.94, allocations: 32.12 kB / 0.6777 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008356/0.9484, allocations: 11.1 MB / 0.6886 GB, free: 82.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.9484, allocations: 5.75 kB / 0.6886 GB, free: 82.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004589/0.953, allocations: 3.581 MB / 0.6921 GB, free: 81.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008913/0.9539, allocations: 467.2 kB / 0.6925 GB, free: 81.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.9541, allocations: 27.34 kB / 0.6926 GB, free: 81.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009282/0.9551, allocations: 88.5 kB / 0.6926 GB, free: 81.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/0.9554, allocations: 114.1 kB / 0.6927 GB, free: 81.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.579e-05/0.9554, allocations: 39.58 kB / 0.6928 GB, free: 81.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001627/0.9571, allocations: 1.311 MB / 0.6941 GB, free: 81.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9571, allocations: 0 / 0.6941 GB, free: 81.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003676/0.9608, allocations: 1.127 MB / 0.6952 GB, free: 81.43 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 87 * 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.0006989/0.9615, allocations: 483.8 kB / 0.6956 GB, free: 81.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005267/0.9668, allocations: 4.103 MB / 0.6996 GB, free: 80.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.9668, allocations: 2.875 kB / 0.6996 GB, free: 80.37 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00217/0.969, allocations: 1.761 MB / 0.7014 GB, free: 79.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/0.9724, allocations: 0.6071 MB / 0.7019 GB, free: 79.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008979/0.9814, allocations: 6.976 MB / 0.7088 GB, free: 76.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/0.9831, allocations: 2.322 MB / 0.711 GB, free: 76.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001974/0.9851, allocations: 0.5292 MB / 0.7115 GB, free: 76.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/0.9854, allocations: 135.7 kB / 0.7117 GB, free: 76 MB / 442.7 MB Notification: Performance of SimCode: time 8.82e-07/0.9854, allocations: 0 / 0.7117 GB, free: 76 MB / 442.7 MB Notification: Performance of Templates: time 0.05713/1.043, allocations: 41.49 MB / 0.7522 GB, free: 66.94 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches