Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 198.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009047/0.0009047, allocations: 101.7 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002194/0.0002195, allocations: 4 kB / 357.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1905, allocations: 51.46 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.4774, allocations: 111.3 MB / 0.5085 GB, free: 45.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4777, allocations: 90.83 kB / 0.5086 GB, free: 45.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1219/0.5996, allocations: 55.29 MB / 0.5626 GB, free: 31.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5996, allocations: 0 / 0.5626 GB, free: 31.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002118/0.5999, allocations: 78.27 kB / 0.5626 GB, free: 31.96 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006342/0.6062, allocations: 2.986 MB / 0.5656 GB, free: 30.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.6063, allocations: 9.562 kB / 0.5656 GB, free: 30.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.6074, allocations: 360.9 kB / 0.5659 GB, free: 30.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.6114, allocations: 1.94 MB / 0.5678 GB, free: 29.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.6115, allocations: 200.5 kB / 0.568 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004981/0.612, allocations: 247.8 kB / 0.5682 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004867/0.6169, allocations: 3.38 MB / 0.5715 GB, free: 28.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.584e-05/0.617, allocations: 7.719 kB / 0.5715 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/0.6172, allocations: 110.6 kB / 0.5716 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.618e-05/0.6173, allocations: 119.4 kB / 0.5718 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003661/0.6209, allocations: 2.773 MB / 0.5745 GB, free: 26.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01217/0.6331, allocations: 10.92 MB / 0.5851 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.6353, allocations: 2.474 MB / 0.5875 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002503/0.6356, allocations: 138.3 kB / 0.5877 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.6356, allocations: 51.88 kB / 0.5877 GB, free: 12.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.827e-06/0.6356, allocations: 0 / 0.5877 GB, free: 12.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01197/0.6476, allocations: 7.31 MB / 0.5949 GB, free: 4.938 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.6477, allocations: 94.42 kB / 0.595 GB, free: 4.828 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/0.6495, allocations: 1.579 MB / 0.5965 GB, free: 3.254 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.946e-05/0.6496, allocations: 53.7 kB / 0.5965 GB, free: 3.195 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000519/0.6501, allocations: 1.218 MB / 0.5977 GB, free: 1.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.6503, allocations: 0.5006 MB / 0.5982 GB, free: 1.453 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.6504, allocations: 32 kB / 0.5983 GB, free: 1.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.068e-05/0.6505, allocations: 381.9 kB / 0.5986 GB, free: 1.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009915/0.6515, allocations: 0.8511 MB / 0.5995 GB, free: 196 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.6531, allocations: 1.31 MB / 0.6007 GB, free: 14.69 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.6545, allocations: 1.045 MB / 0.6018 GB, free: 13.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.6546, allocations: 4 kB / 0.6018 GB, free: 13.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004081/0.6586, allocations: 2.864 MB / 0.6046 GB, free: 10.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001889/0.6605, allocations: 5.585 MB / 0.61 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.6606, allocations: 12 kB / 0.61 GB, free: 4.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.662, allocations: 0.6792 MB / 0.6107 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.6633, allocations: 367.5 kB / 0.611 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008428/0.6718, allocations: 8.498 MB / 0.6193 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.6733, allocations: 115.8 kB / 0.6194 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.6734, allocations: 68 kB / 0.6195 GB, free: 10.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.6734, allocations: 4 kB / 0.6195 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003784/0.6772, allocations: 2.65 MB / 0.6221 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.6773, allocations: 12.5 kB / 0.6221 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.6787, allocations: 0.671 MB / 0.6228 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.6799, allocations: 371.5 kB / 0.6231 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008752/0.6886, allocations: 8.494 MB / 0.6314 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.6901, allocations: 103.9 kB / 0.6315 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.6902, allocations: 76.05 kB / 0.6316 GB, free: 13.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001657/0.6919, allocations: 0.9312 MB / 0.6325 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/0.6923, allocations: 201.5 kB / 0.6327 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004266/0.6966, allocations: 2.625 MB / 0.6353 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.6966, allocations: 20.11 kB / 0.6353 GB, free: 9.934 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.6966, allocations: 4.75 kB / 0.6353 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.6966, allocations: 3.984 kB / 0.6353 GB, free: 9.926 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009128/0.7058, allocations: 5.418 MB / 0.6406 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/0.7058, allocations: 4 kB / 0.6406 GB, free: 4.398 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/0.7068, allocations: 231.7 kB / 0.6408 GB, free: 4.172 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001601/0.7084, allocations: 0.6944 MB / 0.6415 GB, free: 3.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.7085, allocations: 35.98 kB / 0.6415 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009648/0.7182, allocations: 10.03 MB / 0.6513 GB, free: 8.859 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.7182, allocations: 7.938 kB / 0.6513 GB, free: 8.852 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005649/0.7239, allocations: 3.955 MB / 0.6552 GB, free: 4.785 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.7251, allocations: 478.4 kB / 0.6556 GB, free: 4.297 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/0.7253, allocations: 32 kB / 0.6557 GB, free: 4.266 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.7263, allocations: 99.89 kB / 0.6558 GB, free: 4.168 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.7266, allocations: 117.1 kB / 0.6559 GB, free: 4.055 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.7267, allocations: 48.3 kB / 0.6559 GB, free: 4.008 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001758/0.7285, allocations: 1.229 MB / 0.6571 GB, free: 2.789 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7285, allocations: 0 / 0.6571 GB, free: 2.789 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002844/0.7314, allocations: 1.047 MB / 0.6581 GB, free: 1.742 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.00061/0.732, allocations: 431.5 kB / 0.6585 GB, free: 1.324 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006017/0.738, allocations: 4.537 MB / 0.663 GB, free: 12.67 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.738, allocations: 0 / 0.663 GB, free: 12.67 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.7403, allocations: 1.759 MB / 0.6647 GB, free: 10.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.7426, allocations: 0.572 MB / 0.6653 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009225/0.7519, allocations: 6.482 MB / 0.6716 GB, free: 3.762 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/0.7537, allocations: 2.154 MB / 0.6737 GB, free: 1.574 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001821/0.7555, allocations: 0.5912 MB / 0.6743 GB, free: 0.9805 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.7559, allocations: 139.3 kB / 0.6744 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/0.7559, allocations: 0 / 0.6744 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of Templates: time 0.221/0.9768, allocations: 41.62 MB / 0.715 GB, free: 114.6 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches