Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000785/0.000785, allocations: 100.2 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001937/0.0001938, allocations: 4 kB / 357.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1861, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2748/0.4609, allocations: 109.9 MB / 0.5071 GB, free: 96.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4612, allocations: 89.61 kB / 0.5072 GB, free: 96.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.113/0.5742, allocations: 50.19 MB / 0.5562 GB, free: 55.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.5742, allocations: 0 / 0.5562 GB, free: 55.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001872/0.5744, allocations: 67.92 kB / 0.5563 GB, free: 55.36 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.005519/0.5799, allocations: 2.64 MB / 0.5589 GB, free: 52.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.58, allocations: 12.03 kB / 0.5589 GB, free: 52.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.581, allocations: 324.5 kB / 0.5592 GB, free: 52.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003199/0.5842, allocations: 1.703 MB / 0.5608 GB, free: 50.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.5843, allocations: 172.4 kB / 0.561 GB, free: 50.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002848/0.5846, allocations: 216 kB / 0.5612 GB, free: 50.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/0.5883, allocations: 2.895 MB / 0.564 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.87e-05/0.5883, allocations: 15.86 kB / 0.5641 GB, free: 47.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001897/0.5885, allocations: 103.9 kB / 0.5642 GB, free: 47.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.846e-05/0.5886, allocations: 104.4 kB / 0.5643 GB, free: 46.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00314/0.5918, allocations: 2.317 MB / 0.5665 GB, free: 44.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01093/0.6027, allocations: 9.137 MB / 0.5754 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.6046, allocations: 1.767 MB / 0.5772 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002617/0.6049, allocations: 223.1 kB / 0.5774 GB, free: 33.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.6049, allocations: 43.56 kB / 0.5774 GB, free: 32.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 2.605e-06/0.605, allocations: 0 / 0.5774 GB, free: 32.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.0149/0.6199, allocations: 7.644 MB / 0.5849 GB, free: 25.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.6199, allocations: 68.67 kB / 0.585 GB, free: 25.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001852/0.6218, allocations: 1.35 MB / 0.5863 GB, free: 23.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.875e-05/0.6219, allocations: 49.7 kB / 0.5863 GB, free: 23.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005076/0.6224, allocations: 1.1 MB / 0.5874 GB, free: 22.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002385/0.6227, allocations: 457.4 kB / 0.5878 GB, free: 22.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.251e-05/0.6228, allocations: 32 kB / 0.5879 GB, free: 22.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.936e-05/0.6228, allocations: 369.9 kB / 0.5882 GB, free: 21.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.6239, allocations: 0.7769 MB / 0.589 GB, free: 20.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.6251, allocations: 1.195 MB / 0.5901 GB, free: 19.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.6263, allocations: 0.9589 MB / 0.5911 GB, free: 18.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.6263, allocations: 4 kB / 0.5911 GB, free: 18.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003885/0.6302, allocations: 2.715 MB / 0.5937 GB, free: 15.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.6303, allocations: 12.03 kB / 0.5937 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.6303, allocations: 12 kB / 0.5938 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.6316, allocations: 0.5918 MB / 0.5943 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.6328, allocations: 367.4 kB / 0.5947 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/0.6393, allocations: 6.906 MB / 0.6014 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.6406, allocations: 115.9 kB / 0.6015 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.6407, allocations: 72.11 kB / 0.6016 GB, free: 7.555 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 (169): * Single equations (assignments): 166 * 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.001125/0.6419, allocations: 0.7218 MB / 0.6023 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.6421, allocations: 177.8 kB / 0.6025 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.6457, allocations: 2.446 MB / 0.6049 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.6457, allocations: 12 kB / 0.6049 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.6457, allocations: 4 kB / 0.6049 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.6458, allocations: 11.97 kB / 0.6049 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007178/0.6529, allocations: 5.002 MB / 0.6098 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.83e-06/0.653, allocations: 0 / 0.6098 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009409/0.6539, allocations: 227.9 kB / 0.61 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.6556, allocations: 0.6469 MB / 0.6106 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.6557, allocations: 31.98 kB / 0.6107 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00957/0.6653, allocations: 8.656 MB / 0.6191 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6653, allocations: 8 kB / 0.6191 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005613/0.671, allocations: 3.665 MB / 0.6227 GB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.672, allocations: 414.8 kB / 0.6231 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.6723, allocations: 36 kB / 0.6231 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009714/0.6733, allocations: 91.89 kB / 0.6232 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/0.6736, allocations: 109.1 kB / 0.6233 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.994e-05/0.6737, allocations: 39.98 kB / 0.6234 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001577/0.6752, allocations: 1.035 MB / 0.6244 GB, free: 15.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6753, allocations: 0 / 0.6244 GB, free: 15.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002245/0.6775, allocations: 0.5585 MB / 0.6249 GB, free: 15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (102): * Single equations (assignments): 99 * 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%) 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.000654/0.6782, allocations: 372.4 kB / 0.6253 GB, free: 14.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004111/0.6823, allocations: 2.448 MB / 0.6277 GB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6823, allocations: 0 / 0.6277 GB, free: 12.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002504/0.6848, allocations: 1.57 MB / 0.6292 GB, free: 10.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.6868, allocations: 442.8 kB / 0.6296 GB, free: 10.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.694, allocations: 5.645 MB / 0.6351 GB, free: 4.398 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.6956, allocations: 1.927 MB / 0.637 GB, free: 2.438 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001108/0.6967, allocations: 387.1 kB / 0.6374 GB, free: 2.055 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.697, allocations: 127.4 kB / 0.6375 GB, free: 1.93 MB / 410.7 MB Notification: Performance of SimCode: time 7.02e-07/0.697, allocations: 0 / 0.6375 GB, free: 1.93 MB / 410.7 MB Notification: Performance of Templates: time 0.04438/0.7414, allocations: 29.42 MB / 0.6662 GB, free: 4.715 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches