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.001378/0.001378, allocations: 175.9 kB / 17.4 MB, free: 4.293 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.363/1.363, allocations: 223.3 MB / 241.4 MB, free: 11.69 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.000817/0.0008169, allocations: 102 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003138, allocations: 11.94 kB / 352.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1919, allocations: 50.4 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.3067, allocations: 105.9 MB / 0.4967 GB, free: 6.414 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.307, allocations: 87.95 kB / 0.4968 GB, free: 6.328 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2589/0.5659, allocations: 46.23 MB / 0.5419 GB, free: 73.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.566, allocations: 0 / 0.5419 GB, free: 73.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001918/0.5662, allocations: 59.94 kB / 0.542 GB, free: 73.44 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.00568/0.5719, allocations: 2.487 MB / 0.5444 GB, free: 70.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.5719, allocations: 8.031 kB / 0.5444 GB, free: 70.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001104/0.573, allocations: 297.7 kB / 0.5447 GB, free: 70.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.5764, allocations: 1.655 MB / 0.5463 GB, free: 68.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.5765, allocations: 160.6 kB / 0.5465 GB, free: 68.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004893/0.577, allocations: 220.2 kB / 0.5467 GB, free: 68.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004739/0.5818, allocations: 2.793 MB / 0.5494 GB, free: 65.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-05/0.5819, allocations: 8.172 kB / 0.5494 GB, free: 65.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002175/0.5821, allocations: 91.94 kB / 0.5495 GB, free: 65.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-05/0.5822, allocations: 96.19 kB / 0.5496 GB, free: 65.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/0.5861, allocations: 2.246 MB / 0.5518 GB, free: 63.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.5984, allocations: 8.616 MB / 0.5602 GB, free: 54.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/0.6005, allocations: 1.757 MB / 0.5619 GB, free: 52.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.6017, allocations: 0.8332 MB / 0.5627 GB, free: 51.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002782/0.602, allocations: 219.1 kB / 0.5629 GB, free: 51.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.602, allocations: 47.55 kB / 0.563 GB, free: 51.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.206e-06/0.6021, allocations: 0 / 0.563 GB, free: 51.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.01386/0.6159, allocations: 7.046 MB / 0.5699 GB, free: 44.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.616, allocations: 64.41 kB / 0.5699 GB, free: 43.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001964/0.618, allocations: 1.406 MB / 0.5713 GB, free: 42.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.6181, allocations: 49.64 kB / 0.5714 GB, free: 42.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004705/0.6186, allocations: 1.033 MB / 0.5724 GB, free: 41.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.6188, allocations: 437.7 kB / 0.5728 GB, free: 41.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/0.6189, allocations: 32 kB / 0.5728 GB, free: 41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.619, allocations: 365.9 kB / 0.5732 GB, free: 40.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.6201, allocations: 0.7457 MB / 0.5739 GB, free: 39.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.6212, allocations: 1.126 MB / 0.575 GB, free: 38.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.6236, allocations: 1.987 MB / 0.5769 GB, free: 36.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.6236, allocations: 4 kB / 0.5769 GB, free: 36.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.003851/0.6275, allocations: 2.61 MB / 0.5795 GB, free: 33.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.6275, allocations: 15.94 kB / 0.5795 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.6275, allocations: 12.25 kB / 0.5795 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.6288, allocations: 0.5879 MB / 0.5801 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.63, allocations: 339.5 kB / 0.5804 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005954/0.636, allocations: 6.342 MB / 0.5866 GB, free: 26.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.6372, allocations: 115.9 kB / 0.5867 GB, free: 26.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.6373, allocations: 56 kB / 0.5868 GB, free: 26.11 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 (158): * Single equations (assignments): 155 * 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.001194/0.6385, allocations: 0.6994 MB / 0.5874 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.6388, allocations: 158 kB / 0.5876 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.6424, allocations: 2.39 MB / 0.5899 GB, free: 22.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.6425, allocations: 12 kB / 0.5899 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.6425, allocations: 4 kB / 0.5899 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.6425, allocations: 7.984 kB / 0.59 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007208/0.6497, allocations: 4.833 MB / 0.5947 GB, free: 17.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.6497, allocations: 8.438 kB / 0.5947 GB, free: 17.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.6505, allocations: 211.7 kB / 0.5949 GB, free: 17.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.652, allocations: 0.6429 MB / 0.5955 GB, free: 17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-05/0.6521, allocations: 31.98 kB / 0.5955 GB, free: 16.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00705/0.6592, allocations: 8.064 MB / 0.6034 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.6592, allocations: 0 / 0.6034 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.664, allocations: 3.435 MB / 0.6068 GB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008171/0.6649, allocations: 402.9 kB / 0.6072 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003322/0.6652, allocations: 27.98 kB / 0.6072 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009784/0.6662, allocations: 103.9 kB / 0.6073 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.6665, allocations: 96.8 kB / 0.6074 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/0.6665, allocations: 47.92 kB / 0.6074 GB, free: 4.316 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001337/0.6679, allocations: 0.9576 MB / 0.6084 GB, free: 3.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6679, allocations: 0 / 0.6084 GB, free: 3.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001558/0.6695, allocations: 0.5234 MB / 0.6089 GB, free: 2.836 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (99): * Single equations (assignments): 96 * 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%) 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.0004951/0.67, allocations: 307.8 kB / 0.6092 GB, free: 2.527 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00346/0.6734, allocations: 2.376 MB / 0.6115 GB, free: 112 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.6735, allocations: 4.125 kB / 0.6115 GB, free: 108 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002555/0.676, allocations: 1.529 MB / 0.613 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.6786, allocations: 388.4 kB / 0.6133 GB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0082/0.6868, allocations: 5.409 MB / 0.6186 GB, free: 8.695 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/0.6887, allocations: 1.823 MB / 0.6204 GB, free: 6.844 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001382/0.6901, allocations: 366 kB / 0.6208 GB, free: 6.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.6906, allocations: 111.4 kB / 0.6209 GB, free: 6.371 MB / 394.7 MB Notification: Performance of SimCode: time 4.91e-07/0.6906, allocations: 0 / 0.6209 GB, free: 6.371 MB / 394.7 MB Notification: Performance of Templates: time 0.04459/0.7352, allocations: 27.21 MB / 0.6474 GB, free: 11.38 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/jenkins1/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