Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009385/0.0009385, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 226.5 MB / 245.4 MB, free: 8.141 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007887/0.0007887, allocations: 94.94 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002001/0.0002001, allocations: 8 kB / 358.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1806, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2708/0.4515, allocations: 108.6 MB / 0.5059 GB, free: 96.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4517, allocations: 91.83 kB / 0.5059 GB, free: 96.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1124/0.5642, allocations: 50.49 MB / 0.5552 GB, free: 57.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5642, allocations: 0 / 0.5552 GB, free: 57.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001999/0.5644, allocations: 67.94 kB / 0.5553 GB, free: 57.86 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.005772/0.5702, allocations: 2.791 MB / 0.558 GB, free: 55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.5703, allocations: 8.031 kB / 0.558 GB, free: 54.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.5717, allocations: 373.2 kB / 0.5584 GB, free: 54.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003494/0.5752, allocations: 1.849 MB / 0.5602 GB, free: 52.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.5753, allocations: 177 kB / 0.5604 GB, free: 52.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006766/0.576, allocations: 228.4 kB / 0.5606 GB, free: 52.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005884/0.5819, allocations: 3.127 MB / 0.5636 GB, free: 49.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.458e-05/0.582, allocations: 12.08 kB / 0.5637 GB, free: 49.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002924/0.5823, allocations: 103.9 kB / 0.5638 GB, free: 48.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.781e-05/0.5824, allocations: 108.6 kB / 0.5639 GB, free: 48.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004195/0.5866, allocations: 2.575 MB / 0.5664 GB, free: 46.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0123/0.5989, allocations: 9.777 MB / 0.5759 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.6011, allocations: 2.23 MB / 0.5781 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.6024, allocations: 0.9761 MB / 0.5791 GB, free: 32.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002675/0.6027, allocations: 223.1 kB / 0.5793 GB, free: 32.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.6027, allocations: 47.5 kB / 0.5793 GB, free: 32.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.617e-06/0.6027, allocations: 4 kB / 0.5793 GB, free: 32.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01449/0.6172, allocations: 7.95 MB / 0.5871 GB, free: 24.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.6173, allocations: 64.72 kB / 0.5871 GB, free: 24.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.6198, allocations: 1.723 MB / 0.5888 GB, free: 22.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.62, allocations: 45.7 kB / 0.5889 GB, free: 22.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.6205, allocations: 1.14 MB / 0.59 GB, free: 21.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.6209, allocations: 485 kB / 0.5904 GB, free: 20.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.079e-05/0.621, allocations: 32 kB / 0.5905 GB, free: 20.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.303e-05/0.6211, allocations: 369.9 kB / 0.5908 GB, free: 20.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.6222, allocations: 0.8549 MB / 0.5917 GB, free: 19.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.6235, allocations: 1.236 MB / 0.5929 GB, free: 18.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002533/0.6261, allocations: 2.191 MB / 0.595 GB, free: 15.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.6261, allocations: 3.938 kB / 0.595 GB, free: 15.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004255/0.6303, allocations: 2.844 MB / 0.5978 GB, free: 13.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.6304, allocations: 8 kB / 0.5978 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.6304, allocations: 12.25 kB / 0.5978 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.6317, allocations: 0.5925 MB / 0.5984 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.6329, allocations: 367.4 kB / 0.5987 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006058/0.639, allocations: 6.331 MB / 0.6049 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.6405, allocations: 116 kB / 0.605 GB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/0.6407, allocations: 67.92 kB / 0.6051 GB, free: 5.273 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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: 2 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.6421, allocations: 0.8017 MB / 0.6059 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004234/0.6425, allocations: 189.7 kB / 0.6061 GB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003958/0.6465, allocations: 2.627 MB / 0.6086 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.6465, allocations: 16 kB / 0.6086 GB, free: 1.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.6466, allocations: 7.984 kB / 0.6086 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.6466, allocations: 3.984 kB / 0.6087 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009403/0.656, allocations: 5.36 MB / 0.6139 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.656, allocations: 0 / 0.6139 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000982/0.657, allocations: 240 kB / 0.6141 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/0.6587, allocations: 0.6467 MB / 0.6147 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.6588, allocations: 35.98 kB / 0.6148 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009336/0.6681, allocations: 8.08 MB / 0.6227 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.6682, allocations: 7.938 kB / 0.6227 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006422/0.6746, allocations: 3.829 MB / 0.6264 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.6757, allocations: 454.6 kB / 0.6269 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/0.6762, allocations: 35.98 kB / 0.6269 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.6774, allocations: 103.9 kB / 0.627 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.6777, allocations: 125.4 kB / 0.6271 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.6779, allocations: 40 kB / 0.6271 GB, free: 14.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002137/0.68, allocations: 1.183 MB / 0.6283 GB, free: 12.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.68, allocations: 0 / 0.6283 GB, free: 12.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002046/0.6821, allocations: 0.5703 MB / 0.6289 GB, free: 12.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005957/0.6827, allocations: 316.4 kB / 0.6292 GB, free: 11.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004407/0.6871, allocations: 2.605 MB / 0.6317 GB, free: 9.332 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.6871, allocations: 0 / 0.6317 GB, free: 9.332 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002812/0.6899, allocations: 1.702 MB / 0.6334 GB, free: 7.598 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002955/0.6929, allocations: 457.4 kB / 0.6338 GB, free: 7.152 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009202/0.7021, allocations: 6.026 MB / 0.6397 GB, free: 1.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002127/0.7043, allocations: 2.017 MB / 0.6417 GB, free: 15.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001423/0.7057, allocations: 431.5 kB / 0.6421 GB, free: 14.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004215/0.7061, allocations: 127.4 kB / 0.6422 GB, free: 14.46 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.7061, allocations: 0 / 0.6422 GB, free: 14.46 MB / 426.7 MB Notification: Performance of Templates: time 0.05014/0.7563, allocations: 30.61 MB / 0.6721 GB, free: 64 kB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches