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.001038/0.001038, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008997/0.0008997, allocations: 96.58 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.986e-05, allocations: 4 kB / 343.7 MB, free: 8.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1157, allocations: 51.47 MB / 395.2 MB, free: 4.719 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.4999, allocations: 117 MB / 0.5001 GB, free: 8.797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5003, allocations: 91.36 kB / 0.5002 GB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4623/0.9626, allocations: 78.89 MB / 0.5773 GB, free: 71.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.9627, allocations: 0 / 0.5773 GB, free: 71.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002525/0.9629, allocations: 86.95 kB / 0.5773 GB, free: 71.95 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.008676/0.9716, allocations: 3.23 MB / 0.5805 GB, free: 70.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.9717, allocations: 9.656 kB / 0.5805 GB, free: 70.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003388/0.9751, allocations: 0.5998 MB / 0.5811 GB, free: 70.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007346/0.9824, allocations: 3.15 MB / 0.5842 GB, free: 70.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.9826, allocations: 102.1 kB / 0.5843 GB, free: 70.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005926/0.9832, allocations: 189.3 kB / 0.5844 GB, free: 70.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005619/0.9888, allocations: 3.07 MB / 0.5874 GB, free: 70.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00583/0.9947, allocations: 3.588 MB / 0.5909 GB, free: 69.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.842e-05/0.9948, allocations: 7.609 kB / 0.5909 GB, free: 69.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002447/0.995, allocations: 3.156 kB / 0.591 GB, free: 69.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001604/0.9952, allocations: 141.3 kB / 0.5911 GB, free: 69.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02094/1.016, allocations: 13.36 MB / 0.6041 GB, free: 66.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004397/1.021, allocations: 6.049 MB / 0.61 GB, free: 61.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/1.022, allocations: 1.287 MB / 0.6113 GB, free: 61.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006011/1.028, allocations: 3.237 MB / 0.6145 GB, free: 60.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/1.028, allocations: 55.22 kB / 0.6145 GB, free: 60.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.989e-06/1.028, allocations: 4 kB / 0.6145 GB, free: 60.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.009003/1.037, allocations: 4.544 MB / 0.619 GB, free: 59.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/1.038, allocations: 95.48 kB / 0.6191 GB, free: 59.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003007/1.041, allocations: 1.413 MB / 0.6204 GB, free: 59.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/1.041, allocations: 25.7 kB / 0.6205 GB, free: 59.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/1.042, allocations: 1.469 MB / 0.6219 GB, free: 58.65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004872/1.042, allocations: 458.8 kB / 0.6223 GB, free: 58.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-05/1.042, allocations: 0 / 0.6223 GB, free: 58.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/1.042, allocations: 379.2 kB / 0.6227 GB, free: 58.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/1.044, allocations: 0.6712 MB / 0.6233 GB, free: 58.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/1.045, allocations: 1.188 MB / 0.6245 GB, free: 57.42 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/1.047, allocations: 0.9866 MB / 0.6255 GB, free: 57.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/1.047, allocations: 4.312 kB / 0.6255 GB, free: 57.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.005349/1.052, allocations: 2.542 MB / 0.628 GB, free: 56.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001666/1.054, allocations: 6.541 MB / 0.6343 GB, free: 49.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/1.054, allocations: 16.67 kB / 0.6344 GB, free: 49.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/1.056, allocations: 0.4892 MB / 0.6348 GB, free: 49.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/1.057, allocations: 369.8 kB / 0.6352 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007597/1.065, allocations: 6.799 MB / 0.6418 GB, free: 43.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002629/1.068, allocations: 65.23 kB / 0.6419 GB, free: 43.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/1.068, allocations: 72.62 kB / 0.642 GB, free: 43.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/1.068, allocations: 3.312 kB / 0.642 GB, free: 43.9 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00539/1.073, allocations: 2.323 MB / 0.6442 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.674e-05/1.073, allocations: 16.12 kB / 0.6442 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/1.075, allocations: 0.4889 MB / 0.6447 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/1.076, allocations: 357.5 kB / 0.6451 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006702/1.083, allocations: 6.787 MB / 0.6517 GB, free: 37.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.085, allocations: 59.7 kB / 0.6518 GB, free: 37.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/1.085, allocations: 81.61 kB / 0.6518 GB, free: 37.73 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.0006946/1.086, allocations: 156.9 kB / 0.652 GB, free: 37.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/1.086, allocations: 191.4 kB / 0.6522 GB, free: 37.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004461/1.091, allocations: 2.35 MB / 0.6545 GB, free: 36.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/1.091, allocations: 12.14 kB / 0.6545 GB, free: 36.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.091, allocations: 3.875 kB / 0.6545 GB, free: 36.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/1.091, allocations: 6.844 kB / 0.6545 GB, free: 36.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008205/1.099, allocations: 4.807 MB / 0.6592 GB, free: 34.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/1.099, allocations: 3.562 kB / 0.6592 GB, free: 34.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000753/1.1, allocations: 178.1 kB / 0.6593 GB, free: 34.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/1.101, allocations: 0.6291 MB / 0.66 GB, free: 34.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.445e-05/1.101, allocations: 3.438 kB / 0.66 GB, free: 34.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008372/1.109, allocations: 10.67 MB / 0.6704 GB, free: 25.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.109, allocations: 0 / 0.6704 GB, free: 25.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006415/1.116, allocations: 3.568 MB / 0.6739 GB, free: 23.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.117, allocations: 438.8 kB / 0.6743 GB, free: 23.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005569/1.118, allocations: 7.875 kB / 0.6743 GB, free: 23.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.119, allocations: 69.47 kB / 0.6744 GB, free: 23.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/1.119, allocations: 109.5 kB / 0.6745 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.611e-05/1.119, allocations: 38.47 kB / 0.6745 GB, free: 23.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001465/1.121, allocations: 1.054 MB / 0.6755 GB, free: 22.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.121, allocations: 3.609 kB / 0.6755 GB, free: 22.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003777/1.125, allocations: 0.993 MB / 0.6765 GB, free: 22.96 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.0006972/1.125, allocations: 466.8 kB / 0.6769 GB, free: 22.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00482/1.13, allocations: 3.852 MB / 0.6807 GB, free: 20.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/1.13, allocations: 0 / 0.6807 GB, free: 20.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/1.132, allocations: 1.629 MB / 0.6823 GB, free: 19.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/1.135, allocations: 0.5061 MB / 0.6828 GB, free: 19.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/1.144, allocations: 4.543 MB / 0.6872 GB, free: 17.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/1.146, allocations: 2.373 MB / 0.6895 GB, free: 16.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00271/1.149, allocations: 0.7433 MB / 0.6903 GB, free: 16.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/1.149, allocations: 99.31 kB / 0.6904 GB, free: 16.5 MB / 442.7 MB Notification: Performance of SimCode: time 2.144e-06/1.149, allocations: 4 kB / 0.6904 GB, free: 16.5 MB / 442.7 MB Notification: Performance of Templates: time 0.05538/1.204, allocations: 35.81 MB / 0.7253 GB, free: 6.824 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/jenkins/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