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.001243/0.001243, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007821/0.0007821, allocations: 95.06 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002269, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1998, allocations: 51.3 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3127/0.5126, allocations: 109.9 MB / 0.5071 GB, free: 97.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.5128, allocations: 91.95 kB / 0.5072 GB, free: 97.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1177/0.6305, allocations: 50.15 MB / 0.5562 GB, free: 57.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6305, allocations: 0 / 0.5562 GB, free: 57.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002117/0.6308, allocations: 59.94 kB / 0.5562 GB, free: 57.07 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.005864/0.6366, allocations: 2.617 MB / 0.5588 GB, free: 54.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.6367, allocations: 12.03 kB / 0.5588 GB, free: 54.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.6378, allocations: 329.4 kB / 0.5591 GB, free: 54.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.6412, allocations: 1.75 MB / 0.5608 GB, free: 52.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.6413, allocations: 168.8 kB / 0.561 GB, free: 52.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004545/0.6418, allocations: 228.2 kB / 0.5612 GB, free: 51.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004414/0.6462, allocations: 2.912 MB / 0.564 GB, free: 48.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.55e-05/0.6463, allocations: 4.188 kB / 0.5641 GB, free: 48.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.6465, allocations: 95.94 kB / 0.5641 GB, free: 48.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.664e-05/0.6466, allocations: 108.3 kB / 0.5642 GB, free: 48.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003699/0.6503, allocations: 2.324 MB / 0.5665 GB, free: 46.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/0.663, allocations: 9.152 MB / 0.5755 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/0.665, allocations: 1.775 MB / 0.5772 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.6662, allocations: 0.8426 MB / 0.578 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002705/0.6665, allocations: 223.1 kB / 0.5782 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.6665, allocations: 43.56 kB / 0.5783 GB, free: 33.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 2.905e-06/0.6665, allocations: 0 / 0.5783 GB, free: 33.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01469/0.6812, allocations: 7.604 MB / 0.5857 GB, free: 26.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.6813, allocations: 68.72 kB / 0.5858 GB, free: 25.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/0.6838, allocations: 1.53 MB / 0.5873 GB, free: 24.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.949e-05/0.6839, allocations: 45.7 kB / 0.5873 GB, free: 24.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/0.6844, allocations: 1.108 MB / 0.5884 GB, free: 23.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.6847, allocations: 453.4 kB / 0.5888 GB, free: 22.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.6848, allocations: 36 kB / 0.5888 GB, free: 22.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.6848, allocations: 369.8 kB / 0.5892 GB, free: 22.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.6859, allocations: 0.7691 MB / 0.5899 GB, free: 21.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.6871, allocations: 1.191 MB / 0.5911 GB, free: 20.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.6895, allocations: 2.088 MB / 0.5931 GB, free: 18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.6895, allocations: 8 kB / 0.5932 GB, free: 17.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00392/0.6934, allocations: 2.707 MB / 0.5958 GB, free: 15.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.6935, allocations: 12 kB / 0.5958 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.6935, allocations: 15.98 kB / 0.5958 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.6947, allocations: 0.5925 MB / 0.5964 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.6959, allocations: 367.5 kB / 0.5968 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006351/0.7023, allocations: 6.702 MB / 0.6033 GB, free: 7.309 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.7037, allocations: 111.9 kB / 0.6034 GB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/0.7039, allocations: 67.98 kB / 0.6035 GB, free: 7.133 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.001348/0.7052, allocations: 0.7237 MB / 0.6042 GB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004303/0.7056, allocations: 173.8 kB / 0.6043 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.7095, allocations: 2.438 MB / 0.6067 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.7095, allocations: 12 kB / 0.6067 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.7095, allocations: 12 kB / 0.6067 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.7095, allocations: 11.91 kB / 0.6068 GB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008158/0.7177, allocations: 5.038 MB / 0.6117 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.7177, allocations: 4 kB / 0.6117 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009004/0.7187, allocations: 228 kB / 0.6119 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.7203, allocations: 0.6385 MB / 0.6125 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.7204, allocations: 39.98 kB / 0.6126 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009298/0.7297, allocations: 8.411 MB / 0.6208 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7298, allocations: 4 kB / 0.6208 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005786/0.7356, allocations: 3.527 MB / 0.6242 GB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009341/0.7365, allocations: 422.6 kB / 0.6246 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003646/0.7369, allocations: 31.98 kB / 0.6247 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.738, allocations: 95.89 kB / 0.6248 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/0.7382, allocations: 116.7 kB / 0.6249 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.7383, allocations: 36 kB / 0.6249 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001819/0.7402, allocations: 1.039 MB / 0.6259 GB, free: 15.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7402, allocations: 0 / 0.6259 GB, free: 15.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001942/0.7421, allocations: 0.5469 MB / 0.6264 GB, free: 14.97 MB / 410.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.0006841/0.7428, allocations: 374 kB / 0.6268 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004204/0.747, allocations: 2.431 MB / 0.6292 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.747, allocations: 3.938 kB / 0.6292 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.7497, allocations: 1.564 MB / 0.6307 GB, free: 10.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/0.7528, allocations: 464.2 kB / 0.6311 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008943/0.7617, allocations: 5.672 MB / 0.6367 GB, free: 4.328 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002001/0.7638, allocations: 1.891 MB / 0.6385 GB, free: 2.402 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001458/0.7652, allocations: 379.2 kB / 0.6389 GB, free: 2.027 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.7657, allocations: 123.4 kB / 0.639 GB, free: 1.906 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.7657, allocations: 4 kB / 0.639 GB, free: 1.902 MB / 410.7 MB Notification: Performance of Templates: time 0.04923/0.8149, allocations: 29.73 MB / 0.6681 GB, free: 4.367 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches