Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 227.2 MB / 245 MB, free: 5.883 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008466/0.0008466, allocations: 93.36 kB / 297.3 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000199/0.0001991, allocations: 4 kB / 357.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1847, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.2943, allocations: 106.6 MB / 0.5039 GB, free: 4 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.1577/0.4521, allocations: 82.91 kB / 0.504 GB, free: 95.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1025/0.5546, allocations: 46.38 MB / 0.5493 GB, free: 62.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.5546, allocations: 3.938 kB / 0.5493 GB, free: 62.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000168/0.5548, allocations: 67.94 kB / 0.5493 GB, free: 62.34 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005339/0.5601, allocations: 2.51 MB / 0.5518 GB, free: 59.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.5602, allocations: 12.02 kB / 0.5518 GB, free: 59.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.5612, allocations: 296.8 kB / 0.5521 GB, free: 59.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002989/0.5642, allocations: 1.612 MB / 0.5537 GB, free: 57.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.732e-05/0.5643, allocations: 156.2 kB / 0.5538 GB, free: 57.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/0.5645, allocations: 216.6 kB / 0.554 GB, free: 57.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003405/0.5679, allocations: 2.78 MB / 0.5567 GB, free: 54.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.437e-05/0.568, allocations: 7.938 kB / 0.5567 GB, free: 54.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.5682, allocations: 88 kB / 0.5568 GB, free: 54.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.716e-05/0.5683, allocations: 100.2 kB / 0.5569 GB, free: 54.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002903/0.5712, allocations: 2.246 MB / 0.5591 GB, free: 52.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01123/0.5824, allocations: 8.624 MB / 0.5675 GB, free: 43.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002196/0.5846, allocations: 1.753 MB / 0.5692 GB, free: 41.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002986/0.585, allocations: 223.1 kB / 0.5695 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.585, allocations: 52.97 kB / 0.5695 GB, free: 40.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 2.986e-06/0.585, allocations: 0 / 0.5695 GB, free: 40.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01258/0.5976, allocations: 7.204 MB / 0.5765 GB, free: 33.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.5976, allocations: 64.41 kB / 0.5766 GB, free: 33.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.5991, allocations: 1.251 MB / 0.5778 GB, free: 32.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.5992, allocations: 49.7 kB / 0.5779 GB, free: 32.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/0.5996, allocations: 1.026 MB / 0.5789 GB, free: 31.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.5999, allocations: 437.7 kB / 0.5793 GB, free: 30.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.5999, allocations: 32 kB / 0.5793 GB, free: 30.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.6, allocations: 369.9 kB / 0.5797 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009713/0.601, allocations: 0.7535 MB / 0.5804 GB, free: 29.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.6021, allocations: 1.123 MB / 0.5815 GB, free: 28.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.6032, allocations: 0.9276 MB / 0.5824 GB, free: 27.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.6032, allocations: 0 / 0.5824 GB, free: 27.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00353/0.6068, allocations: 2.614 MB / 0.585 GB, free: 24.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.6068, allocations: 8 kB / 0.585 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.6068, allocations: 15.95 kB / 0.585 GB, free: 24.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.608, allocations: 0.5767 MB / 0.5855 GB, free: 24.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.6092, allocations: 347.5 kB / 0.5859 GB, free: 23.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.615, allocations: 6.542 MB / 0.5923 GB, free: 17.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.6164, allocations: 107.9 kB / 0.5924 GB, free: 16.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.6165, allocations: 67.92 kB / 0.5924 GB, free: 16.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (157): * Single equations (assignments): 154 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001057/0.6176, allocations: 0.6986 MB / 0.5931 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.6178, allocations: 166 kB / 0.5933 GB, free: 16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003378/0.6212, allocations: 2.39 MB / 0.5956 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.6213, allocations: 12 kB / 0.5956 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.6213, allocations: 8 kB / 0.5956 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.6213, allocations: 11.97 kB / 0.5956 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00657/0.6279, allocations: 4.786 MB / 0.6003 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.6279, allocations: 3.938 kB / 0.6003 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008042/0.6287, allocations: 207.9 kB / 0.6005 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.6301, allocations: 0.6398 MB / 0.6011 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.331e-05/0.6302, allocations: 31.98 kB / 0.6012 GB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006822/0.637, allocations: 8.322 MB / 0.6093 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6371, allocations: 4 kB / 0.6093 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005433/0.6425, allocations: 3.529 MB / 0.6127 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009283/0.6435, allocations: 399 kB / 0.6131 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.6437, allocations: 27.98 kB / 0.6132 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008833/0.6446, allocations: 91.91 kB / 0.6132 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.6448, allocations: 104.8 kB / 0.6133 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-05/0.6449, allocations: 36.38 kB / 0.6134 GB, free: 10.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001307/0.6462, allocations: 0.9615 MB / 0.6143 GB, free: 9.805 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6462, allocations: 0 / 0.6143 GB, free: 9.805 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001727/0.648, allocations: 0.5234 MB / 0.6148 GB, free: 9.281 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (97): * Single equations (assignments): 94 * 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%) 22,(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.0005177/0.6485, allocations: 322.1 kB / 0.6151 GB, free: 8.957 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003714/0.6522, allocations: 2.372 MB / 0.6174 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.6523, allocations: 4 kB / 0.6175 GB, free: 6.539 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.6547, allocations: 1.545 MB / 0.619 GB, free: 4.957 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.6563, allocations: 384.7 kB / 0.6193 GB, free: 4.586 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.6631, allocations: 5.369 MB / 0.6246 GB, free: 15.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/0.6646, allocations: 1.874 MB / 0.6264 GB, free: 13.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.6657, allocations: 358 kB / 0.6267 GB, free: 12.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.6661, allocations: 115.4 kB / 0.6269 GB, free: 12.79 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6661, allocations: 4 kB / 0.6269 GB, free: 12.79 MB / 410.7 MB Notification: Performance of Templates: time 0.04184/0.7079, allocations: 27.02 MB / 0.6532 GB, free: 1.941 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches