Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00134/0.00134, allocations: 200.9 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 245.4 MB, free: 6.543 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007869/0.0007869, allocations: 105 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002018, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.186, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.2946, allocations: 106.6 MB / 0.5032 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.2949, allocations: 92.64 kB / 0.5033 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.242/0.5369, allocations: 46.36 MB / 0.5485 GB, free: 64.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5369, allocations: 0 / 0.5485 GB, free: 64.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000193/0.5371, allocations: 59.94 kB / 0.5486 GB, free: 64.65 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005937/0.543, allocations: 2.497 MB / 0.551 GB, free: 62.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.5431, allocations: 12.03 kB / 0.551 GB, free: 62.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.5445, allocations: 297.7 kB / 0.5513 GB, free: 61.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003575/0.5481, allocations: 1.655 MB / 0.5529 GB, free: 60.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.5483, allocations: 156.6 kB / 0.5531 GB, free: 59.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006275/0.5489, allocations: 220.2 kB / 0.5533 GB, free: 59.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00534/0.5542, allocations: 2.8 MB / 0.556 GB, free: 56.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.913e-05/0.5544, allocations: 4.094 kB / 0.556 GB, free: 56.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.5547, allocations: 91.94 kB / 0.5561 GB, free: 56.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.577e-05/0.5547, allocations: 100.2 kB / 0.5562 GB, free: 56.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004067/0.5588, allocations: 2.246 MB / 0.5584 GB, free: 54.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01312/0.572, allocations: 8.621 MB / 0.5668 GB, free: 45.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/0.5742, allocations: 1.759 MB / 0.5685 GB, free: 43.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.5755, allocations: 0.8276 MB / 0.5694 GB, free: 42.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/0.5758, allocations: 219.1 kB / 0.5696 GB, free: 42.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.5758, allocations: 47.56 kB / 0.5696 GB, free: 42.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 2.835e-06/0.5758, allocations: 0 / 0.5696 GB, free: 42.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.01382/0.5897, allocations: 7.054 MB / 0.5765 GB, free: 35.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.5897, allocations: 68.39 kB / 0.5766 GB, free: 35.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.5918, allocations: 1.406 MB / 0.5779 GB, free: 33.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.5919, allocations: 53.64 kB / 0.578 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004864/0.5924, allocations: 1.03 MB / 0.579 GB, free: 32.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.5927, allocations: 441.6 kB / 0.5794 GB, free: 32.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.354e-05/0.5928, allocations: 32 kB / 0.5794 GB, free: 32.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.192e-05/0.5929, allocations: 361.9 kB / 0.5798 GB, free: 31.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.594, allocations: 0.7496 MB / 0.5805 GB, free: 31.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.5952, allocations: 1.13 MB / 0.5816 GB, free: 29.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.5976, allocations: 1.983 MB / 0.5836 GB, free: 27.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.5976, allocations: 4 kB / 0.5836 GB, free: 27.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004044/0.6016, allocations: 2.606 MB / 0.5861 GB, free: 25.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.6017, allocations: 15.94 kB / 0.5861 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.6017, allocations: 11.94 kB / 0.5861 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.603, allocations: 0.5804 MB / 0.5867 GB, free: 24.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.6042, allocations: 343.5 kB / 0.587 GB, free: 24.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006026/0.6103, allocations: 6.339 MB / 0.5932 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.6117, allocations: 115.8 kB / 0.5933 GB, free: 17.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.6119, allocations: 60 kB / 0.5934 GB, free: 17.3 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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.001276/0.6132, allocations: 0.6964 MB / 0.5941 GB, free: 16.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003625/0.6136, allocations: 162 kB / 0.5942 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003899/0.6175, allocations: 2.386 MB / 0.5966 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.6175, allocations: 12 kB / 0.5966 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.958e-05/0.6175, allocations: 8 kB / 0.5966 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.6176, allocations: 7.969 kB / 0.5966 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007608/0.6252, allocations: 4.822 MB / 0.6013 GB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.6252, allocations: 4 kB / 0.6013 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008265/0.626, allocations: 204 kB / 0.6015 GB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.6276, allocations: 0.651 MB / 0.6021 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.6278, allocations: 35.98 kB / 0.6022 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007224/0.635, allocations: 8.064 MB / 0.61 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.635, allocations: 4 kB / 0.61 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005971/0.641, allocations: 3.423 MB / 0.6134 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.642, allocations: 406.8 kB / 0.6138 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/0.6424, allocations: 32 kB / 0.6138 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.6434, allocations: 99.88 kB / 0.6139 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.6438, allocations: 96.8 kB / 0.614 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.6439, allocations: 51.86 kB / 0.614 GB, free: 11.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001712/0.6456, allocations: 0.9654 MB / 0.615 GB, free: 10.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6456, allocations: 0 / 0.615 GB, free: 10.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00189/0.6475, allocations: 0.5117 MB / 0.6155 GB, free: 10.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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,72.2%) 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.0005514/0.6481, allocations: 309.3 kB / 0.6158 GB, free: 9.738 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004101/0.6522, allocations: 2.372 MB / 0.6181 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.6522, allocations: 0 / 0.6181 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.6549, allocations: 1.529 MB / 0.6196 GB, free: 5.758 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.6575, allocations: 404.5 kB / 0.62 GB, free: 5.363 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008458/0.666, allocations: 5.469 MB / 0.6253 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/0.6679, allocations: 1.8 MB / 0.6271 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005656/0.6685, allocations: 127.4 kB / 0.6272 GB, free: 13.88 MB / 410.7 MB Notification: Performance of SimCode: time 7.52e-07/0.6685, allocations: 0 / 0.6272 GB, free: 13.88 MB / 410.7 MB Notification: Performance of Templates: time 0.2177/0.8862, allocations: 59.77 MB / 0.6856 GB, free: 122.1 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches