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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001265/0.001265, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001259, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.88 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2365, allocations: 50.56 MB / 409.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01112/0.2477, allocations: 9.662 MB / 419.6 MB, free: 8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005792/0.2535, allocations: 3.147 MB / 422.8 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.2548, allocations: 55.75 kB / 422.8 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.2565, allocations: 0.6791 MB / 423.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.2587, allocations: 0.7687 MB / 424.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008185/0.2595, allocations: 391.4 kB / 424.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00269/0.2622, allocations: 2.56 MB / 427.2 MB, free: 384 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002429/0.2646, allocations: 2.322 MB / 429.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.2662, allocations: 1.207 MB / 430.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.2682, allocations: 1.495 MB / 432.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004157/0.2686, allocations: 320 kB / 432.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007949/0.2694, allocations: 419.8 kB / 432.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008221/0.2702, allocations: 0.9039 MB / 433.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.2716, allocations: 1.419 MB / 435.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003886/0.2755, allocations: 4.167 MB / 439.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2755, allocations: 0 / 439.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2755, allocations: 0 / 439.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.376e-05/0.2756, allocations: 4 kB / 439.4 MB, free: 4.039 MB / 350.1 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.005522/0.2811, allocations: 2.908 MB / 442.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.2812, allocations: 12.02 kB / 442.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007539/0.282, allocations: 293.7 kB / 442.6 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002377/0.2843, allocations: 1.534 MB / 444.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.2845, allocations: 164.3 kB / 444.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.2848, allocations: 207.9 kB / 444.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004475/0.2893, allocations: 2.803 MB / 447.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.2893, allocations: 7.906 kB / 447.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001972/0.2895, allocations: 95.92 kB / 447.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.2897, allocations: 104.2 kB / 447.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003827/0.2935, allocations: 2.351 MB / 449.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/0.3056, allocations: 8.495 MB / 458.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.308, allocations: 1.699 MB / 460.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.3097, allocations: 0.9635 MB / 461.1 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003063/0.31, allocations: 203.2 kB / 461.3 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.3101, allocations: 51.44 kB / 461.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.086e-06/0.3101, allocations: 0 / 461.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01303/0.3231, allocations: 6.24 MB / 467.5 MB, free: 7.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.3232, allocations: 68.34 kB / 467.6 MB, free: 7.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/0.3252, allocations: 1.445 MB / 469.1 MB, free: 5.574 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.711e-05/0.3253, allocations: 45.7 kB / 469.1 MB, free: 5.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006785/0.326, allocations: 1.033 MB / 470.1 MB, free: 4.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.3263, allocations: 414.1 kB / 470.5 MB, free: 4.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003872/0.3267, allocations: 255.5 kB / 470.8 MB, free: 3.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3269, allocations: 365.9 kB / 471.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.328, allocations: 0.6832 MB / 471.8 MB, free: 2.762 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.3293, allocations: 1.081 MB / 472.9 MB, free: 1.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0025/0.3318, allocations: 1.86 MB / 474.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3318, allocations: 8 kB / 474.8 MB, free: 15.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003921/0.3357, allocations: 2.417 MB / 477.2 MB, free: 13.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3358, allocations: 8 kB / 477.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.3358, allocations: 12 kB / 477.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/0.3368, allocations: 415.3 kB / 477.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.338, allocations: 339.5 kB / 478 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00664/0.3446, allocations: 7.029 MB / 485 MB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3458, allocations: 103.8 kB / 485.1 MB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.346, allocations: 63.92 kB / 485.1 MB, free: 4.652 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001068/0.347, allocations: 0.6924 MB / 485.8 MB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003076/0.3474, allocations: 162.1 kB / 486 MB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.351, allocations: 2.131 MB / 488.1 MB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.351, allocations: 12 kB / 488.1 MB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.351, allocations: 4 kB / 488.1 MB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3511, allocations: 7.969 kB / 488.2 MB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007179/0.3582, allocations: 4.559 MB / 492.7 MB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3583, allocations: 4 kB / 492.7 MB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000916/0.3592, allocations: 220.1 kB / 492.9 MB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.3603, allocations: 447.1 kB / 493.4 MB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.494e-05/0.3604, allocations: 35.97 kB / 493.4 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00772/0.3681, allocations: 8.624 MB / 0.4903 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.3682, allocations: 11.88 kB / 0.4903 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.373, allocations: 3.092 MB / 0.4933 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007209/0.3737, allocations: 383 kB / 0.4937 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.374, allocations: 24 kB / 0.4937 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009277/0.3749, allocations: 87.89 kB / 0.4938 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.3752, allocations: 92.75 kB / 0.4939 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.322e-05/0.3753, allocations: 40 kB / 0.4939 GB, free: 15.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.3767, allocations: 0.9927 MB / 0.4949 GB, free: 14.19 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.3767, allocations: 0 / 0.4949 GB, free: 14.19 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001522/0.3782, allocations: 472 kB / 0.4953 GB, free: 13.73 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003629/0.3786, allocations: 198.9 kB / 0.4955 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003531/0.3822, allocations: 2.229 MB / 0.4977 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3822, allocations: 4 kB / 0.4977 GB, free: 11.24 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/0.3845, allocations: 1.434 MB / 0.4991 GB, free: 9.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.3863, allocations: 433.4 kB / 0.4995 GB, free: 9.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.3933, allocations: 4.477 MB / 0.5039 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/0.3947, allocations: 1.792 MB / 0.5056 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.3952, allocations: 127.4 kB / 0.5057 GB, free: 2.832 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3952, allocations: 0 / 0.5057 GB, free: 2.832 MB / 430.1 MB Notification: Performance of Templates: time 0.2635/0.6586, allocations: 69.29 MB / 0.5734 GB, free: 101.8 MB / 462.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches