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.001511/0.001511, allocations: 117.7 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 204.9 kB / 19.4 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.356/1.356, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 55.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2584, allocations: 50.55 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01064/0.2691, allocations: 9.664 MB / 419.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.2748, allocations: 3.154 MB / 422.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.2761, allocations: 55.75 kB / 422.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.2781, allocations: 0.6714 MB / 423.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.2806, allocations: 0.7764 MB / 424.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009639/0.2816, allocations: 391.4 kB / 424.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00266/0.2842, allocations: 2.56 MB / 427.2 MB, free: 244 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.2867, allocations: 2.322 MB / 429.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.2882, allocations: 1.195 MB / 430.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.2901, allocations: 1.502 MB / 432.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003965/0.2905, allocations: 323.9 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006994/0.2912, allocations: 419.9 kB / 433 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00074/0.2919, allocations: 0.896 MB / 433.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.2933, allocations: 1.423 MB / 435.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003826/0.2971, allocations: 4.164 MB / 439.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2971, allocations: 0 / 439.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2972, allocations: 0 / 439.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.479e-05/0.2972, allocations: 0 / 439.4 MB, free: 3.914 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.005389/0.3026, allocations: 2.912 MB / 442.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3027, allocations: 12.03 kB / 442.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007142/0.3034, allocations: 289.7 kB / 442.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002623/0.306, allocations: 1.542 MB / 444.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.3062, allocations: 156.3 kB / 444.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002933/0.3065, allocations: 223.8 kB / 444.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00434/0.3108, allocations: 2.792 MB / 447.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/0.3109, allocations: 11.89 kB / 447.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/0.3111, allocations: 84 kB / 447.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001003/0.3112, allocations: 108.2 kB / 447.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00374/0.3149, allocations: 2.347 MB / 449.9 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01211/0.3271, allocations: 8.503 MB / 458.4 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.3292, allocations: 1.702 MB / 460.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001579/0.3308, allocations: 0.9645 MB / 461.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.3311, allocations: 199.2 kB / 461.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.3312, allocations: 55.48 kB / 461.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.565e-06/0.3312, allocations: 0 / 461.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01216/0.3433, allocations: 6.239 MB / 467.5 MB, free: 6.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.3434, allocations: 64.41 kB / 467.6 MB, free: 6.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.3452, allocations: 1.441 MB / 469.1 MB, free: 5.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.3454, allocations: 45.7 kB / 469.1 MB, free: 5.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006648/0.346, allocations: 1.041 MB / 470.1 MB, free: 4.344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.3463, allocations: 402.1 kB / 470.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/0.3467, allocations: 255.4 kB / 470.8 MB, free: 3.688 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3469, allocations: 373.9 kB / 471.1 MB, free: 3.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3479, allocations: 0.6909 MB / 471.8 MB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.3491, allocations: 1.07 MB / 472.9 MB, free: 1.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.3514, allocations: 1.867 MB / 474.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.3515, allocations: 8 kB / 474.8 MB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003603/0.3551, allocations: 2.417 MB / 477.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.3551, allocations: 10.81 kB / 477.2 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3551, allocations: 12 kB / 477.2 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008721/0.356, allocations: 415.3 kB / 477.6 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.3571, allocations: 335.5 kB / 478 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005962/0.3631, allocations: 7.044 MB / 485 MB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.3642, allocations: 99.84 kB / 485.1 MB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-05/0.3644, allocations: 59.98 kB / 485.2 MB, free: 4.52 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.0009742/0.3653, allocations: 0.6963 MB / 485.9 MB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.3656, allocations: 158 kB / 486 MB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/0.3689, allocations: 2.123 MB / 488.1 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3689, allocations: 15.94 kB / 488.1 MB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3689, allocations: 7.984 kB / 488.2 MB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.369, allocations: 3.984 kB / 488.2 MB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006788/0.3758, allocations: 4.563 MB / 492.7 MB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.3758, allocations: 4 kB / 492.7 MB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008402/0.3766, allocations: 212.1 kB / 492.9 MB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.3777, allocations: 451.2 kB / 493.4 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.209e-05/0.3778, allocations: 31.98 kB / 493.4 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006983/0.3848, allocations: 8.632 MB / 0.4903 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.3848, allocations: 7.938 kB / 0.4903 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.3891, allocations: 3.103 MB / 0.4933 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000753/0.3899, allocations: 375 kB / 0.4937 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.3901, allocations: 31.98 kB / 0.4937 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007913/0.3909, allocations: 83.91 kB / 0.4938 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.3911, allocations: 96.75 kB / 0.4939 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.065e-05/0.3912, allocations: 35.98 kB / 0.4939 GB, free: 15.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.3924, allocations: 0.9927 MB / 0.4949 GB, free: 14.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3924, allocations: 3.938 kB / 0.4949 GB, free: 14.05 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001371/0.3938, allocations: 456 kB / 0.4953 GB, free: 13.61 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.0003331/0.3941, allocations: 203 kB / 0.4955 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.3973, allocations: 2.236 MB / 0.4977 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3973, allocations: 0 / 0.4977 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.3994, allocations: 1.438 MB / 0.4991 GB, free: 9.617 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.4011, allocations: 412.2 kB / 0.4995 GB, free: 9.223 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.4071, allocations: 4.497 MB / 0.5039 GB, free: 4.645 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.4084, allocations: 1.784 MB / 0.5056 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.4088, allocations: 127.4 kB / 0.5057 GB, free: 2.699 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4089, allocations: 0 / 0.5057 GB, free: 2.699 MB / 430.1 MB Notification: Performance of Templates: time 0.7444/1.153, allocations: 69.57 MB / 0.5737 GB, free: 101.1 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