Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008818/0.0008813, allocations: 176.1 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.3 MB / 241.4 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007563/0.0007563, allocations: 95.92 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002973, allocations: 19.91 kB / 352.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1933, allocations: 50.39 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1199/0.3132, allocations: 109.2 MB / 0.4999 GB, free: 3.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.3135, allocations: 88.58 kB / 0.5 GB, free: 2.988 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2997/0.6132, allocations: 50.03 MB / 0.5489 GB, free: 66.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6132, allocations: 4 kB / 0.5489 GB, free: 66.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000217/0.6135, allocations: 67.88 kB / 0.549 GB, free: 66.68 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006604/0.6201, allocations: 2.609 MB / 0.5515 GB, free: 64.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.6201, allocations: 8.031 kB / 0.5515 GB, free: 64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001304/0.6215, allocations: 317.5 kB / 0.5518 GB, free: 63.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003761/0.6252, allocations: 1.754 MB / 0.5535 GB, free: 61.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.6254, allocations: 164.8 kB / 0.5537 GB, free: 61.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005742/0.626, allocations: 224.2 kB / 0.5539 GB, free: 61.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00529/0.6313, allocations: 2.916 MB / 0.5567 GB, free: 58.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-05/0.6314, allocations: 8.125 kB / 0.5567 GB, free: 58.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002065/0.6316, allocations: 99.92 kB / 0.5568 GB, free: 58.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.179e-05/0.6317, allocations: 108.3 kB / 0.5569 GB, free: 58.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003731/0.6354, allocations: 2.317 MB / 0.5592 GB, free: 55.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.6478, allocations: 9.144 MB / 0.5681 GB, free: 46.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.6499, allocations: 1.774 MB / 0.5699 GB, free: 44.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.6511, allocations: 0.8465 MB / 0.5707 GB, free: 43.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002838/0.6514, allocations: 219.1 kB / 0.5709 GB, free: 43.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.6514, allocations: 51.5 kB / 0.571 GB, free: 43.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 4.638e-06/0.6514, allocations: 0 / 0.571 GB, free: 43.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01463/0.6661, allocations: 7.601 MB / 0.5784 GB, free: 35.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.6661, allocations: 64.72 kB / 0.5784 GB, free: 35.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.6688, allocations: 1.526 MB / 0.5799 GB, free: 34.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.669, allocations: 45.7 kB / 0.58 GB, free: 34.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005612/0.6695, allocations: 1.104 MB / 0.5811 GB, free: 32.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.6699, allocations: 461.4 kB / 0.5815 GB, free: 32.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.67, allocations: 32 kB / 0.5815 GB, free: 32.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.308e-05/0.6701, allocations: 377.8 kB / 0.5819 GB, free: 32.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.6713, allocations: 0.7652 MB / 0.5826 GB, free: 31.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.6726, allocations: 1.199 MB / 0.5838 GB, free: 29.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/0.6752, allocations: 2.088 MB / 0.5858 GB, free: 27.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.6752, allocations: 4 kB / 0.5858 GB, free: 27.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004567/0.6798, allocations: 2.703 MB / 0.5885 GB, free: 24.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.6798, allocations: 12 kB / 0.5885 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.6799, allocations: 12 kB / 0.5885 GB, free: 24.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.6812, allocations: 0.5969 MB / 0.5891 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.6824, allocations: 367.4 kB / 0.5894 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006706/0.6892, allocations: 6.699 MB / 0.596 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.6908, allocations: 115.8 kB / 0.5961 GB, free: 16.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/0.6912, allocations: 67.98 kB / 0.5962 GB, free: 16.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (170): * Single equations (assignments): 167 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001716/0.6929, allocations: 0.7237 MB / 0.5969 GB, free: 16.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005145/0.6934, allocations: 177.8 kB / 0.597 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004082/0.6975, allocations: 2.446 MB / 0.5994 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.6975, allocations: 12 kB / 0.5994 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.6975, allocations: 4 kB / 0.5994 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.6976, allocations: 7.984 kB / 0.5994 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008538/0.7061, allocations: 5.036 MB / 0.6044 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.7061, allocations: 4 kB / 0.6044 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.707, allocations: 219.7 kB / 0.6046 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.7084, allocations: 0.6426 MB / 0.6052 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.7086, allocations: 35.98 kB / 0.6052 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008315/0.7169, allocations: 8.422 MB / 0.6135 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/0.7169, allocations: 3.938 kB / 0.6135 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006083/0.723, allocations: 3.545 MB / 0.6169 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.7242, allocations: 410.8 kB / 0.6173 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/0.7248, allocations: 31.98 kB / 0.6174 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.7261, allocations: 103.9 kB / 0.6175 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003586/0.7264, allocations: 100.8 kB / 0.6175 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.7266, allocations: 39.98 kB / 0.6176 GB, free: 10.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002402/0.729, allocations: 1.031 MB / 0.6186 GB, free: 9.152 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.205e-06/0.729, allocations: 0 / 0.6186 GB, free: 9.152 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002656/0.7317, allocations: 0.5624 MB / 0.6191 GB, free: 8.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (104): * Single equations (assignments): 101 * 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%) 23,(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.0007891/0.7325, allocations: 353.7 kB / 0.6195 GB, free: 8.238 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004604/0.7371, allocations: 2.439 MB / 0.6219 GB, free: 5.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.7371, allocations: 0 / 0.6219 GB, free: 5.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.7399, allocations: 1.568 MB / 0.6234 GB, free: 4.145 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003266/0.7432, allocations: 455.2 kB / 0.6238 GB, free: 3.707 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.7538, allocations: 5.679 MB / 0.6294 GB, free: 13.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/0.7563, allocations: 1.883 MB / 0.6312 GB, free: 12.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00156/0.7579, allocations: 387.1 kB / 0.6316 GB, free: 11.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.7584, allocations: 127.4 kB / 0.6317 GB, free: 11.54 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7584, allocations: 0 / 0.6317 GB, free: 11.54 MB / 410.7 MB Notification: Performance of Templates: time 0.2767/1.035, allocations: 29.65 MB / 0.6607 GB, free: 109 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches