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.001412/0.001412, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008448/0.0008447, allocations: 96.33 kB / 292.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.299e-05, allocations: 4 kB / 350.5 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09153/0.09157, allocations: 51.49 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4322/0.5238, allocations: 111.2 MB / 0.5012 GB, free: 10.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.5241, allocations: 93.53 kB / 0.5013 GB, free: 10.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1411/0.6652, allocations: 55.37 MB / 0.5554 GB, free: 4.316 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6652, allocations: 0 / 0.5554 GB, free: 4.316 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001874/0.6654, allocations: 75.88 kB / 0.5554 GB, free: 4.242 MB / 426.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.00569/0.6711, allocations: 2.66 MB / 0.558 GB, free: 1.523 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.6712, allocations: 8.031 kB / 0.558 GB, free: 1.516 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001477/0.6726, allocations: 364 kB / 0.5584 GB, free: 1.156 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004173/0.6768, allocations: 1.941 MB / 0.5603 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.677, allocations: 192.9 kB / 0.5605 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000442/0.6775, allocations: 244 kB / 0.5607 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006058/0.6835, allocations: 3.325 MB / 0.5639 GB, free: 11.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.061e-05/0.6836, allocations: 11.84 kB / 0.564 GB, free: 11.22 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.6839, allocations: 108 kB / 0.5641 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.684, allocations: 108.8 kB / 0.5642 GB, free: 11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004631/0.6887, allocations: 2.694 MB / 0.5668 GB, free: 8.297 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2524/0.9411, allocations: 10.9 MB / 0.5774 GB, free: 83.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002622/0.9438, allocations: 2.418 MB / 0.5798 GB, free: 82.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.9451, allocations: 1.05 MB / 0.5808 GB, free: 82.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/0.9454, allocations: 141.2 kB / 0.581 GB, free: 82.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.9455, allocations: 47.16 kB / 0.581 GB, free: 82.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.767e-06/0.9455, allocations: 0 / 0.581 GB, free: 82.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.01026/0.9557, allocations: 5.491 MB / 0.5864 GB, free: 81.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.9558, allocations: 93.33 kB / 0.5865 GB, free: 81.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.9582, allocations: 1.561 MB / 0.588 GB, free: 81.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.9583, allocations: 54.45 kB / 0.588 GB, free: 81.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/0.959, allocations: 1.215 MB / 0.5892 GB, free: 80.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.9594, allocations: 0.5032 MB / 0.5897 GB, free: 80.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/0.9595, allocations: 34.88 kB / 0.5898 GB, free: 80.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.043e-05/0.9595, allocations: 374.2 kB / 0.5901 GB, free: 80.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.9606, allocations: 0.8215 MB / 0.5909 GB, free: 80.17 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.9618, allocations: 1.278 MB / 0.5922 GB, free: 79.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.9631, allocations: 1.01 MB / 0.5931 GB, free: 79.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.9631, allocations: 3.281 kB / 0.5931 GB, free: 79.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003941/0.9671, allocations: 2.81 MB / 0.5959 GB, free: 79.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009258/0.968, allocations: 5.586 MB / 0.6013 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.968, allocations: 13.05 kB / 0.6014 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.9694, allocations: 0.6653 MB / 0.602 GB, free: 73.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.9707, allocations: 371.4 kB / 0.6024 GB, free: 73.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/0.9781, allocations: 8.276 MB / 0.6104 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.98, allocations: 111.1 kB / 0.6106 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.9801, allocations: 74.59 kB / 0.6106 GB, free: 69.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.9801, allocations: 4.344 kB / 0.6106 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003829/0.984, allocations: 2.602 MB / 0.6132 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-05/0.984, allocations: 15.62 kB / 0.6132 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.9856, allocations: 0.6746 MB / 0.6138 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.987, allocations: 363.1 kB / 0.6142 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007821/0.9948, allocations: 8.272 MB / 0.6223 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.9966, allocations: 104.8 kB / 0.6224 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.9967, allocations: 70.16 kB / 0.6224 GB, free: 65.45 MB / 442.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 () * 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.0004115/0.9971, allocations: 213.1 kB / 0.6226 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.9975, allocations: 206.4 kB / 0.6228 GB, free: 65.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/1.002, allocations: 2.555 MB / 0.6253 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/1.002, allocations: 15.53 kB / 0.6253 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.002, allocations: 3.031 kB / 0.6253 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/1.002, allocations: 9.922 kB / 0.6254 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009777/1.012, allocations: 5.355 MB / 0.6306 GB, free: 62.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/1.012, allocations: 6.391 kB / 0.6306 GB, free: 62.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009927/1.013, allocations: 230.8 kB / 0.6308 GB, free: 62.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/1.015, allocations: 0.6914 MB / 0.6315 GB, free: 61.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001334/1.015, allocations: 41.98 kB / 0.6315 GB, free: 61.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00932/1.024, allocations: 9.764 MB / 0.6411 GB, free: 54.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.024, allocations: 3.938 kB / 0.6411 GB, free: 54.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/1.029, allocations: 3.868 MB / 0.6448 GB, free: 53.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/1.03, allocations: 474.8 kB / 0.6453 GB, free: 52.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003732/1.031, allocations: 36.66 kB / 0.6453 GB, free: 52.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/1.032, allocations: 98.2 kB / 0.6454 GB, free: 52.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004401/1.032, allocations: 123.7 kB / 0.6455 GB, free: 52.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.032, allocations: 44.03 kB / 0.6456 GB, free: 52.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002036/1.034, allocations: 1.205 MB / 0.6468 GB, free: 52.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.034, allocations: 0 / 0.6468 GB, free: 52.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004015/1.038, allocations: 1.045 MB / 0.6478 GB, free: 52.07 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 () * 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.0007927/1.039, allocations: 416.9 kB / 0.6482 GB, free: 51.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006349/1.046, allocations: 4.495 MB / 0.6526 GB, free: 49.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.046, allocations: 0 / 0.6526 GB, free: 49.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002354/1.048, allocations: 1.705 MB / 0.6542 GB, free: 48.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003256/1.051, allocations: 0.5808 MB / 0.6548 GB, free: 48.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007374/1.059, allocations: 4.518 MB / 0.6592 GB, free: 46.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/1.06, allocations: 2.149 MB / 0.6613 GB, free: 45.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002704/1.063, allocations: 0.8839 MB / 0.6622 GB, free: 45.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/1.063, allocations: 107.2 kB / 0.6623 GB, free: 45.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/1.063, allocations: 0 / 0.6623 GB, free: 45.61 MB / 442.7 MB Notification: Performance of Templates: time 0.06267/1.126, allocations: 44.71 MB / 0.7059 GB, free: 25.59 MB / 442.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