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.0009963/0.0009963, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.239/1.239, allocations: 221.3 MB / 235.5 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007665/0.0007665, allocations: 89.31 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.93e-05, allocations: 0 / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 50.42 MB / 394.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2949/0.401, allocations: 109 MB / 0.4914 GB, free: 10.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.4013, allocations: 87.78 kB / 0.4915 GB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1257/0.5271, allocations: 50.13 MB / 0.5405 GB, free: 8.004 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.5271, allocations: 0 / 0.5405 GB, free: 8.004 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001355/0.5273, allocations: 59.94 kB / 0.5405 GB, free: 7.945 MB / 426.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.003936/0.5312, allocations: 2.37 MB / 0.5429 GB, free: 5.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.5313, allocations: 8.031 kB / 0.5429 GB, free: 5.512 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.532, allocations: 324.5 kB / 0.5432 GB, free: 5.191 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.5349, allocations: 1.691 MB / 0.5448 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.5351, allocations: 160.4 kB / 0.545 GB, free: 3.281 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00031/0.5354, allocations: 220 kB / 0.5452 GB, free: 3.066 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004148/0.5395, allocations: 2.825 MB / 0.5479 GB, free: 96 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.071e-05/0.5396, allocations: 3.906 kB / 0.5479 GB, free: 92 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.1982/0.7378, allocations: 93.77 kB / 0.548 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.738, allocations: 101.3 kB / 0.5481 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004934/0.7429, allocations: 2.205 MB / 0.5503 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/0.7566, allocations: 9.133 MB / 0.5592 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002164/0.7588, allocations: 1.705 MB / 0.5609 GB, free: 99.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.76, allocations: 0.8055 MB / 0.5617 GB, free: 99.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003115/0.7603, allocations: 217.3 kB / 0.5619 GB, free: 99.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.7604, allocations: 47.19 kB / 0.5619 GB, free: 99.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.486e-06/0.7604, allocations: 0 / 0.5619 GB, free: 99.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01554/0.7759, allocations: 6.4 MB / 0.5682 GB, free: 98.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.776, allocations: 65.22 kB / 0.5682 GB, free: 98.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.7781, allocations: 1.336 MB / 0.5695 GB, free: 98.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-05/0.7781, allocations: 47.14 kB / 0.5696 GB, free: 98.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000601/0.7788, allocations: 1.102 MB / 0.5706 GB, free: 98.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.779, allocations: 459 kB / 0.5711 GB, free: 97.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.7791, allocations: 31.47 kB / 0.5711 GB, free: 97.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.7792, allocations: 370 kB / 0.5715 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009865/0.7802, allocations: 0.7247 MB / 0.5722 GB, free: 97.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.7814, allocations: 1.133 MB / 0.5733 GB, free: 96.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.7825, allocations: 0.9131 MB / 0.5742 GB, free: 96.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.7826, allocations: 3.938 kB / 0.5742 GB, free: 96.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003568/0.7861, allocations: 2.612 MB / 0.5767 GB, free: 95.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.7862, allocations: 12.91 kB / 0.5767 GB, free: 95.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.7862, allocations: 11.75 kB / 0.5768 GB, free: 95.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.7875, allocations: 0.5908 MB / 0.5773 GB, free: 95.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.7887, allocations: 362 kB / 0.5777 GB, free: 95.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00651/0.7952, allocations: 6.694 MB / 0.5842 GB, free: 90.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.7965, allocations: 123.3 kB / 0.5843 GB, free: 90.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.7967, allocations: 64.78 kB / 0.5844 GB, free: 90.84 MB / 426.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 () * 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.0002537/0.7969, allocations: 196.7 kB / 0.5846 GB, free: 90.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002457/0.7972, allocations: 176.8 kB / 0.5847 GB, free: 90.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.8007, allocations: 2.346 MB / 0.587 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.8008, allocations: 17.5 kB / 0.5871 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.8008, allocations: 3.875 kB / 0.5871 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.8008, allocations: 7.172 kB / 0.5871 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006861/0.8077, allocations: 4.935 MB / 0.5919 GB, free: 87.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.8077, allocations: 7.891 kB / 0.5919 GB, free: 87.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008665/0.8086, allocations: 218.2 kB / 0.5921 GB, free: 87.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.81, allocations: 0.648 MB / 0.5927 GB, free: 87.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-05/0.8101, allocations: 31.08 kB / 0.5928 GB, free: 87.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00726/0.8174, allocations: 8.395 MB / 0.601 GB, free: 81.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.8174, allocations: 7.406 kB / 0.601 GB, free: 81.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004159/0.8216, allocations: 3.567 MB / 0.6045 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006787/0.8223, allocations: 411 kB / 0.6048 GB, free: 79.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/0.8225, allocations: 38.73 kB / 0.6049 GB, free: 79.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008813/0.8234, allocations: 95.48 kB / 0.605 GB, free: 79.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.8236, allocations: 108.2 kB / 0.6051 GB, free: 79.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.004e-05/0.8237, allocations: 40.45 kB / 0.6051 GB, free: 79.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.8249, allocations: 1.018 MB / 0.6061 GB, free: 79.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8249, allocations: 0 / 0.6061 GB, free: 79.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001583/0.8265, allocations: 0.5554 MB / 0.6066 GB, free: 79.3 MB / 426.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 () * 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.0004723/0.827, allocations: 369.3 kB / 0.607 GB, free: 79.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002876/0.8299, allocations: 2.32 MB / 0.6093 GB, free: 78.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.8299, allocations: 0 / 0.6093 GB, free: 78.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.8319, allocations: 1.504 MB / 0.6107 GB, free: 77.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.8335, allocations: 437.5 kB / 0.6112 GB, free: 77.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005507/0.839, allocations: 3.886 MB / 0.6149 GB, free: 75.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.8405, allocations: 1.933 MB / 0.6168 GB, free: 74.55 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00106/0.8415, allocations: 381.5 kB / 0.6172 GB, free: 74.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.8418, allocations: 120.7 kB / 0.6173 GB, free: 74.27 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.8418, allocations: 0 / 0.6173 GB, free: 74.27 MB / 426.7 MB Notification: Performance of Templates: time 0.03789/0.8797, allocations: 29.77 MB / 0.6464 GB, free: 51.77 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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches