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.001025/0.001025, allocations: 198.4 kB / 17.08 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 227.2 MB / 245 MB, free: 7.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008566/0.0008565, allocations: 96.28 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000225/0.000225, allocations: 4 kB / 357.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.199, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.284/0.483, allocations: 117.7 MB / 0.5148 GB, free: 97.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.4833, allocations: 100.2 kB / 0.5148 GB, free: 97.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1592/0.6425, allocations: 79.91 MB / 0.5929 GB, free: 17.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.6425, allocations: 0 / 0.5929 GB, free: 17.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002591/0.6428, allocations: 79.94 kB / 0.593 GB, free: 17.5 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.008582/0.6514, allocations: 3.602 MB / 0.5965 GB, free: 13.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.6515, allocations: 8.031 kB / 0.5965 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003003/0.6545, allocations: 0.6017 MB / 0.5971 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007149/0.6616, allocations: 3.19 MB / 0.6002 GB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.6618, allocations: 238.2 kB / 0.6004 GB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007217/0.6625, allocations: 307.9 kB / 0.6007 GB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006233/0.6688, allocations: 4.112 MB / 0.6047 GB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.053e-05/0.6689, allocations: 3.906 kB / 0.6047 GB, free: 5.152 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.6691, allocations: 143.9 kB / 0.6049 GB, free: 5.012 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.983e-05/0.6692, allocations: 138.1 kB / 0.605 GB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004426/0.6737, allocations: 3.354 MB / 0.6083 GB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01792/0.6916, allocations: 13.96 MB / 0.6219 GB, free: 3.129 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/0.6968, allocations: 6.193 MB / 0.628 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005293/0.7021, allocations: 3.402 MB / 0.6313 GB, free: 8.652 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.7022, allocations: 47.88 kB / 0.6313 GB, free: 8.598 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 2.625e-06/0.7022, allocations: 0 / 0.6313 GB, free: 8.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.01224/0.7144, allocations: 6.656 MB / 0.6378 GB, free: 1.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.7145, allocations: 94.42 kB / 0.6379 GB, free: 1.641 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.7168, allocations: 1.706 MB / 0.6396 GB, free: 15.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.982e-05/0.7169, allocations: 45.7 kB / 0.6396 GB, free: 15.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008762/0.7178, allocations: 1.459 MB / 0.641 GB, free: 14.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.7182, allocations: 0.4891 MB / 0.6415 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.7184, allocations: 36 kB / 0.6416 GB, free: 13.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.7186, allocations: 373.9 kB / 0.6419 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.7199, allocations: 0.7535 MB / 0.6427 GB, free: 12.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.7216, allocations: 1.264 MB / 0.6439 GB, free: 11.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.7232, allocations: 0.9433 MB / 0.6448 GB, free: 10.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.7232, allocations: 4 kB / 0.6448 GB, free: 10.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00503/0.7283, allocations: 2.701 MB / 0.6474 GB, free: 7.543 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002675/0.731, allocations: 6.429 MB / 0.6537 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.731, allocations: 19.95 kB / 0.6537 GB, free: 0.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.7322, allocations: 0.4912 MB / 0.6542 GB, free: 80 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.7335, allocations: 371.4 kB / 0.6546 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006772/0.7403, allocations: 7.194 MB / 0.6616 GB, free: 8.113 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.742, allocations: 103.8 kB / 0.6617 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.7421, allocations: 72.19 kB / 0.6618 GB, free: 7.941 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.7421, allocations: 4 kB / 0.6618 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003521/0.7457, allocations: 2.465 MB / 0.6642 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.7457, allocations: 20.03 kB / 0.6642 GB, free: 5.422 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.7467, allocations: 0.4951 MB / 0.6647 GB, free: 4.914 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.748, allocations: 367.4 kB / 0.665 GB, free: 4.555 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2082/0.9562, allocations: 7.191 MB / 0.6721 GB, free: 85.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.958, allocations: 87.72 kB / 0.6721 GB, free: 85.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.9582, allocations: 78.5 kB / 0.6722 GB, free: 85.62 MB / 442.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 (192): * Single equations (assignments): 188 * 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.00191/0.9601, allocations: 1.066 MB / 0.6733 GB, free: 85.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004191/0.9605, allocations: 219.6 kB / 0.6735 GB, free: 85.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.9639, allocations: 2.481 MB / 0.6759 GB, free: 85.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.9639, allocations: 14.88 kB / 0.6759 GB, free: 85.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.9639, allocations: 3.375 kB / 0.6759 GB, free: 85.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.9639, allocations: 9.234 kB / 0.6759 GB, free: 85.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008299/0.9722, allocations: 5.368 MB / 0.6812 GB, free: 84.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.9723, allocations: 7.703 kB / 0.6812 GB, free: 84.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008696/0.9732, allocations: 198.7 kB / 0.6814 GB, free: 84.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.9746, allocations: 0.6355 MB / 0.682 GB, free: 84.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.99e-05/0.9747, allocations: 30.72 kB / 0.682 GB, free: 84.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008412/0.9831, allocations: 11.32 MB / 0.6931 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.9831, allocations: 0 / 0.6931 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004908/0.988, allocations: 3.817 MB / 0.6968 GB, free: 77.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.9893, allocations: 470.8 kB / 0.6972 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005314/0.9898, allocations: 29.06 kB / 0.6973 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.9912, allocations: 90.42 kB / 0.6973 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/0.9915, allocations: 117.2 kB / 0.6975 GB, free: 77.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/0.9917, allocations: 46 kB / 0.6975 GB, free: 77.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002092/0.9938, allocations: 1.307 MB / 0.6988 GB, free: 76.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9938, allocations: 0 / 0.6988 GB, free: 76.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00357/0.9973, allocations: 1.126 MB / 0.6999 GB, free: 76.92 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 (97): * Single equations (assignments): 92 * 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.0006423/0.998, allocations: 489.1 kB / 0.7003 GB, free: 76.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004867/1.003, allocations: 4.167 MB / 0.7044 GB, free: 75.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.003, allocations: 0 / 0.7044 GB, free: 75.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001998/1.005, allocations: 1.787 MB / 0.7062 GB, free: 75.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/1.008, allocations: 0.6046 MB / 0.7068 GB, free: 75.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008975/1.017, allocations: 7.029 MB / 0.7136 GB, free: 72.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/1.018, allocations: 2.372 MB / 0.7159 GB, free: 71.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002019/1.02, allocations: 0.542 MB / 0.7165 GB, free: 71.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/1.021, allocations: 138.2 kB / 0.7166 GB, free: 71.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/1.021, allocations: 0 / 0.7166 GB, free: 71.4 MB / 442.7 MB Notification: Performance of Templates: time 0.05293/1.074, allocations: 41.09 MB / 0.7567 GB, free: 60.96 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