Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 181 kB / 16.38 MB, free: 5.762 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.24/1.24, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 98.81 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002356, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.207, allocations: 50.39 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3298, allocations: 105.7 MB / 0.4953 GB, free: 6.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.3301, allocations: 91.95 kB / 0.4954 GB, free: 6.637 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2982/0.6283, allocations: 46.26 MB / 0.5406 GB, free: 73.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6283, allocations: 4 kB / 0.5406 GB, free: 73.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001481/0.6285, allocations: 55.94 kB / 0.5407 GB, free: 73.82 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.004679/0.6332, allocations: 2.511 MB / 0.5431 GB, free: 71.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.6332, allocations: 12.03 kB / 0.5431 GB, free: 71.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008133/0.634, allocations: 296.7 kB / 0.5434 GB, free: 70.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.6371, allocations: 1.613 MB / 0.545 GB, free: 69.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-05/0.6372, allocations: 168.2 kB / 0.5452 GB, free: 69.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002641/0.6375, allocations: 223.8 kB / 0.5454 GB, free: 68.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003968/0.6414, allocations: 2.769 MB / 0.5481 GB, free: 65.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.055e-05/0.6415, allocations: 7.938 kB / 0.5481 GB, free: 65.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/0.6417, allocations: 88 kB / 0.5482 GB, free: 65.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-05/0.6418, allocations: 100.2 kB / 0.5483 GB, free: 65.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.6451, allocations: 2.238 MB / 0.5504 GB, free: 63.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.656, allocations: 8.616 MB / 0.5589 GB, free: 54.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.658, allocations: 1.753 MB / 0.5606 GB, free: 52.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002744/0.6583, allocations: 219.2 kB / 0.5608 GB, free: 52.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.6583, allocations: 43.56 kB / 0.5608 GB, free: 52.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.216e-06/0.6583, allocations: 0 / 0.5608 GB, free: 52.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01312/0.6715, allocations: 7.207 MB / 0.5679 GB, free: 45.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.6715, allocations: 68.39 kB / 0.5679 GB, free: 45.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.6731, allocations: 1.239 MB / 0.5691 GB, free: 43.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.6732, allocations: 45.7 kB / 0.5692 GB, free: 43.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004449/0.6736, allocations: 1.033 MB / 0.5702 GB, free: 42.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.6738, allocations: 441.6 kB / 0.5706 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/0.6739, allocations: 32 kB / 0.5706 GB, free: 42.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.626e-05/0.674, allocations: 369.8 kB / 0.571 GB, free: 41.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009783/0.675, allocations: 0.7535 MB / 0.5717 GB, free: 41.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.6761, allocations: 1.126 MB / 0.5728 GB, free: 39.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.6772, allocations: 0.9237 MB / 0.5737 GB, free: 38.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.6772, allocations: 4 kB / 0.5737 GB, free: 38.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.003599/0.6808, allocations: 2.61 MB / 0.5763 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.6809, allocations: 8.25 kB / 0.5763 GB, free: 36.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.6809, allocations: 19.98 kB / 0.5763 GB, free: 36.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.6821, allocations: 0.5843 MB / 0.5769 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.6832, allocations: 343.5 kB / 0.5772 GB, free: 35.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005896/0.6892, allocations: 6.539 MB / 0.5836 GB, free: 28.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.6905, allocations: 107.9 kB / 0.5837 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.6906, allocations: 60 kB / 0.5838 GB, free: 28.37 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.001204/0.6918, allocations: 0.7002 MB / 0.5844 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.692, allocations: 158 kB / 0.5846 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.6955, allocations: 2.405 MB / 0.5869 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.6955, allocations: 12 kB / 0.5869 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.6955, allocations: 4 kB / 0.587 GB, free: 25.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.6955, allocations: 7.969 kB / 0.587 GB, free: 25.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006779/0.7023, allocations: 4.775 MB / 0.5916 GB, free: 20.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.7023, allocations: 11.88 kB / 0.5916 GB, free: 20.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008382/0.7032, allocations: 211.7 kB / 0.5918 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.7046, allocations: 0.6399 MB / 0.5925 GB, free: 19.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.44e-05/0.7047, allocations: 35.94 kB / 0.5925 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006784/0.7115, allocations: 8.32 MB / 0.6006 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7115, allocations: 4 kB / 0.6006 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004371/0.7159, allocations: 3.528 MB / 0.6041 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007782/0.7167, allocations: 402.9 kB / 0.6045 GB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.7169, allocations: 27.98 kB / 0.6045 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008207/0.7177, allocations: 103.9 kB / 0.6046 GB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.7179, allocations: 100.8 kB / 0.6047 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.718, allocations: 35.98 kB / 0.6047 GB, free: 6.242 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001124/0.7191, allocations: 0.9615 MB / 0.6056 GB, free: 5.281 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7191, allocations: 0 / 0.6056 GB, free: 5.281 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001408/0.7205, allocations: 0.5156 MB / 0.6062 GB, free: 4.766 MB / 378.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.0004211/0.721, allocations: 323.7 kB / 0.6065 GB, free: 4.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.7239, allocations: 2.372 MB / 0.6088 GB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7239, allocations: 0 / 0.6088 GB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/0.7259, allocations: 1.548 MB / 0.6103 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.7272, allocations: 376.6 kB / 0.6106 GB, free: 68 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006953/0.7341, allocations: 5.389 MB / 0.6159 GB, free: 10.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/0.7356, allocations: 1.858 MB / 0.6177 GB, free: 8.742 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001046/0.7366, allocations: 362 kB / 0.6181 GB, free: 8.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.7369, allocations: 111.4 kB / 0.6182 GB, free: 8.273 MB / 394.7 MB Notification: Performance of SimCode: time 2.114e-06/0.7369, allocations: 0 / 0.6182 GB, free: 8.273 MB / 394.7 MB Notification: Performance of Templates: time 0.03962/0.7766, allocations: 26.97 MB / 0.6445 GB, free: 13.52 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches