Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009913/0.0009911, allocations: 203.9 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 245.3 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007886/0.0007886, allocations: 92.56 kB / 297.4 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002139/0.000214, allocations: 8 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1875, allocations: 51.29 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2638/0.4513, allocations: 108.6 MB / 0.5051 GB, free: 96.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.4516, allocations: 88.06 kB / 0.5052 GB, free: 96.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1118/0.5635, allocations: 50.5 MB / 0.5546 GB, free: 57.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5635, allocations: 0 / 0.5546 GB, free: 57.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002277/0.5638, allocations: 67.88 kB / 0.5546 GB, free: 57.89 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.006502/0.5703, allocations: 2.791 MB / 0.5573 GB, free: 55.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.5703, allocations: 12.03 kB / 0.5574 GB, free: 55.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.5718, allocations: 377.2 kB / 0.5577 GB, free: 54.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.5755, allocations: 1.849 MB / 0.5595 GB, free: 52.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.5757, allocations: 173 kB / 0.5597 GB, free: 52.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006142/0.5763, allocations: 228.4 kB / 0.5599 GB, free: 52.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/0.5818, allocations: 3.132 MB / 0.563 GB, free: 49.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.227e-05/0.5819, allocations: 4.094 kB / 0.563 GB, free: 49.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/0.5822, allocations: 103.9 kB / 0.5631 GB, free: 48.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.247e-05/0.5822, allocations: 104.6 kB / 0.5632 GB, free: 48.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004158/0.5864, allocations: 2.587 MB / 0.5657 GB, free: 46.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/0.5998, allocations: 9.765 MB / 0.5752 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/0.6021, allocations: 2.23 MB / 0.5774 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.6033, allocations: 0.9722 MB / 0.5784 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002892/0.6036, allocations: 219.1 kB / 0.5786 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.6037, allocations: 51.55 kB / 0.5786 GB, free: 32.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.496e-06/0.6037, allocations: 4 kB / 0.5786 GB, free: 32.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01413/0.6178, allocations: 7.947 MB / 0.5864 GB, free: 24.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.6179, allocations: 64.72 kB / 0.5864 GB, free: 24.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.6202, allocations: 1.719 MB / 0.5881 GB, free: 22.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.6204, allocations: 49.7 kB / 0.5882 GB, free: 22.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005237/0.6209, allocations: 1.14 MB / 0.5893 GB, free: 21.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.6212, allocations: 485 kB / 0.5897 GB, free: 20.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.6213, allocations: 36 kB / 0.5898 GB, free: 20.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.6214, allocations: 365.9 kB / 0.5901 GB, free: 20.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.6225, allocations: 0.8549 MB / 0.591 GB, free: 19.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.6238, allocations: 1.24 MB / 0.5922 GB, free: 18.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.6263, allocations: 2.187 MB / 0.5943 GB, free: 15.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.6263, allocations: 7.938 kB / 0.5943 GB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004208/0.6305, allocations: 2.848 MB / 0.5971 GB, free: 13.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.6306, allocations: 8 kB / 0.5971 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.6306, allocations: 16.19 kB / 0.5971 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.6319, allocations: 0.5885 MB / 0.5977 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.6331, allocations: 363.5 kB / 0.598 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005974/0.6391, allocations: 6.331 MB / 0.6042 GB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.6404, allocations: 119.9 kB / 0.6043 GB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.6406, allocations: 67.94 kB / 0.6044 GB, free: 5.312 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.001352/0.6419, allocations: 0.8016 MB / 0.6052 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000371/0.6423, allocations: 189.7 kB / 0.6054 GB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004039/0.6464, allocations: 2.631 MB / 0.6079 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.6464, allocations: 12 kB / 0.6079 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.6464, allocations: 8 kB / 0.608 GB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.6464, allocations: 7.969 kB / 0.608 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009465/0.6559, allocations: 5.364 MB / 0.6132 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.6559, allocations: 4 kB / 0.6132 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.657, allocations: 236 kB / 0.6134 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.6587, allocations: 0.6429 MB / 0.6141 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.6589, allocations: 35.98 kB / 0.6141 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00942/0.6683, allocations: 8.072 MB / 0.622 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.6683, allocations: 4 kB / 0.622 GB, free: 2.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00661/0.675, allocations: 3.829 MB / 0.6257 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.6761, allocations: 458.5 kB / 0.6262 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/0.6765, allocations: 39.97 kB / 0.6262 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.6777, allocations: 103.9 kB / 0.6263 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/0.6781, allocations: 125.1 kB / 0.6264 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.6782, allocations: 43.98 kB / 0.6265 GB, free: 14.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002193/0.6804, allocations: 1.179 MB / 0.6276 GB, free: 12.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6804, allocations: 0 / 0.6276 GB, free: 12.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001987/0.6824, allocations: 0.5664 MB / 0.6282 GB, free: 12.35 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.0006109/0.683, allocations: 324.5 kB / 0.6285 GB, free: 12.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004649/0.6877, allocations: 2.609 MB / 0.631 GB, free: 9.367 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.6877, allocations: 0 / 0.631 GB, free: 9.367 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003347/0.6911, allocations: 1.699 MB / 0.6327 GB, free: 7.637 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003555/0.6946, allocations: 449 kB / 0.6331 GB, free: 7.199 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009723/0.7044, allocations: 6.066 MB / 0.639 GB, free: 1.062 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/0.7065, allocations: 1.997 MB / 0.641 GB, free: 15.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006453/0.7072, allocations: 135.4 kB / 0.6411 GB, free: 14.9 MB / 426.7 MB Notification: Performance of SimCode: time 8.71e-07/0.7072, allocations: 0 / 0.6411 GB, free: 14.9 MB / 426.7 MB Notification: Performance of Templates: time 0.2386/0.9458, allocations: 68.44 MB / 0.7079 GB, free: 111.3 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches