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.001026/0.001026, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008361/0.0008362, allocations: 86.69 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.684e-05/2.696e-05, allocations: 0 / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.08981, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3179/0.4077, allocations: 109.8 MB / 0.4998 GB, free: 12.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.408, allocations: 84.48 kB / 0.4999 GB, free: 12.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.134/0.5421, allocations: 50.24 MB / 0.549 GB, free: 10.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5421, allocations: 0 / 0.549 GB, free: 10.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002413/0.5424, allocations: 59.94 kB / 0.5491 GB, free: 10.89 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.0067/0.5491, allocations: 2.365 MB / 0.5514 GB, free: 8.469 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5491, allocations: 12.03 kB / 0.5514 GB, free: 8.457 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.5508, allocations: 320.5 kB / 0.5517 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004505/0.5553, allocations: 1.691 MB / 0.5533 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.5555, allocations: 176.4 kB / 0.5535 GB, free: 6.215 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007711/0.5563, allocations: 219.9 kB / 0.5537 GB, free: 6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007126/0.5635, allocations: 2.814 MB / 0.5565 GB, free: 3.039 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001073/0.5636, allocations: 15.89 kB / 0.5565 GB, free: 3.023 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004177/0.564, allocations: 95.98 kB / 0.5566 GB, free: 2.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.5642, allocations: 104.3 kB / 0.5567 GB, free: 2.824 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004478/0.5686, allocations: 2.2 MB / 0.5588 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01523/0.5839, allocations: 9.132 MB / 0.5677 GB, free: 7.199 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/0.5861, allocations: 1.704 MB / 0.5694 GB, free: 5.367 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.5873, allocations: 0.8022 MB / 0.5702 GB, free: 4.566 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003325/0.5877, allocations: 223.1 kB / 0.5704 GB, free: 4.312 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.5877, allocations: 55.5 kB / 0.5704 GB, free: 4.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.106e-06/0.5877, allocations: 0 / 0.5704 GB, free: 4.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.2483/0.836, allocations: 6.391 MB / 0.5767 GB, free: 90.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.8361, allocations: 66.91 kB / 0.5767 GB, free: 90.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.8378, allocations: 1.337 MB / 0.5781 GB, free: 90.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.66e-05/0.8379, allocations: 49.33 kB / 0.5781 GB, free: 90.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005168/0.8384, allocations: 1.103 MB / 0.5792 GB, free: 90.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.8387, allocations: 461.7 kB / 0.5796 GB, free: 89.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/0.8388, allocations: 33 kB / 0.5796 GB, free: 89.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.402e-05/0.8389, allocations: 366 kB / 0.58 GB, free: 89.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008888/0.8398, allocations: 0.7223 MB / 0.5807 GB, free: 89.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.8408, allocations: 1.135 MB / 0.5818 GB, free: 89.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.842, allocations: 0.9147 MB / 0.5827 GB, free: 89.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.842, allocations: 2.969 kB / 0.5827 GB, free: 89.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003898/0.8459, allocations: 2.611 MB / 0.5853 GB, free: 88.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.8459, allocations: 9.375 kB / 0.5853 GB, free: 88.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.8459, allocations: 16.42 kB / 0.5853 GB, free: 88.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.8473, allocations: 0.587 MB / 0.5859 GB, free: 88.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.8486, allocations: 364.6 kB / 0.5862 GB, free: 88.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006817/0.8554, allocations: 6.692 MB / 0.5927 GB, free: 86.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.8568, allocations: 117.8 kB / 0.5929 GB, free: 86.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.857, allocations: 67.17 kB / 0.5929 GB, free: 86.2 MB / 442.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.0002558/0.8572, allocations: 200.2 kB / 0.5931 GB, free: 86.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.8575, allocations: 175.8 kB / 0.5933 GB, free: 86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.8611, allocations: 2.347 MB / 0.5956 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.8611, allocations: 13.53 kB / 0.5956 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.8611, allocations: 7.188 kB / 0.5956 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.8611, allocations: 10.41 kB / 0.5956 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007055/0.8682, allocations: 4.933 MB / 0.6004 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.8682, allocations: 4.281 kB / 0.6004 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008788/0.8691, allocations: 222.5 kB / 0.6006 GB, free: 85.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.8707, allocations: 0.6504 MB / 0.6013 GB, free: 85.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-05/0.8708, allocations: 41.64 kB / 0.6013 GB, free: 85.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008019/0.8788, allocations: 8.383 MB / 0.6095 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.8788, allocations: 4.312 kB / 0.6095 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005178/0.884, allocations: 3.573 MB / 0.613 GB, free: 79.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.8853, allocations: 411.7 kB / 0.6134 GB, free: 79.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/0.8855, allocations: 33.52 kB / 0.6134 GB, free: 79.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009643/0.8865, allocations: 103.4 kB / 0.6135 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/0.8868, allocations: 109.2 kB / 0.6136 GB, free: 79.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-05/0.8869, allocations: 40.7 kB / 0.6136 GB, free: 79.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001624/0.8886, allocations: 1.017 MB / 0.6146 GB, free: 78.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8886, allocations: 1.281 kB / 0.6146 GB, free: 78.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002016/0.8906, allocations: 0.5515 MB / 0.6152 GB, free: 78.78 MB / 442.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.0006069/0.8912, allocations: 376.5 kB / 0.6155 GB, free: 78.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.895, allocations: 2.33 MB / 0.6178 GB, free: 77.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.895, allocations: 0.9062 kB / 0.6178 GB, free: 77.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0024/0.8974, allocations: 1.503 MB / 0.6193 GB, free: 76.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.8996, allocations: 443 kB / 0.6197 GB, free: 76.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006989/0.9066, allocations: 3.888 MB / 0.6235 GB, free: 75.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001879/0.9085, allocations: 1.934 MB / 0.6254 GB, free: 74.24 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001632/0.9102, allocations: 380.1 kB / 0.6258 GB, free: 74.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003715/0.9106, allocations: 124.5 kB / 0.6259 GB, free: 74.19 MB / 442.7 MB Notification: Performance of SimCode: time 1.803e-06/0.9106, allocations: 0.6562 kB / 0.6259 GB, free: 74.19 MB / 442.7 MB Notification: Performance of Templates: time 0.04327/0.9539, allocations: 29.83 MB / 0.655 GB, free: 72.64 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