Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001956/0.001956, allocations: 207.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 43.94 kB / 378.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 53.37 MB / 431.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01219/0.2742, allocations: 8.576 MB / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006824/0.281, allocations: 2.973 MB / 443.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.2827, allocations: 71.5 kB / 443.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.2848, allocations: 0.6672 MB / 443.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00291/0.2877, allocations: 0.8155 MB / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.2889, allocations: 399.4 kB / 445.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003672/0.2925, allocations: 2.56 MB / 447.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/0.2945, allocations: 1.3 MB / 448.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.2964, allocations: 1.227 MB / 450.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.2989, allocations: 1.541 MB / 451.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005174/0.2995, allocations: 320 kB / 452 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008565/0.3003, allocations: 427.8 kB / 452.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.3013, allocations: 0.9037 MB / 453.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.3028, allocations: 1.144 MB / 454.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004857/0.3076, allocations: 4.208 MB / 458.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3076, allocations: 0 / 458.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3076, allocations: 0 / 458.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001058/0.3077, allocations: 0 / 458.7 MB, free: 11.5 MB / 366.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.006952/0.3147, allocations: 2.908 MB / 461.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3147, allocations: 8.031 kB / 461.6 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000892/0.3156, allocations: 307.2 kB / 461.9 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.3189, allocations: 1.483 MB / 463.4 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.3191, allocations: 160.3 kB / 463.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000371/0.3195, allocations: 215.9 kB / 463.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005731/0.3252, allocations: 2.896 MB / 466.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.289e-05/0.3252, allocations: 11.86 kB / 466.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002151/0.3255, allocations: 88 kB / 466.8 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.3256, allocations: 100.2 kB / 466.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004436/0.33, allocations: 2.343 MB / 469.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/0.3439, allocations: 7.377 MB / 476.6 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002313/0.3462, allocations: 1.175 MB / 477.8 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.3479, allocations: 0.9016 MB / 478.7 MB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/0.3482, allocations: 48.97 kB / 478.7 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.3482, allocations: 43.56 kB / 478.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.226e-06/0.3482, allocations: 0 / 478.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01367/0.3619, allocations: 5.725 MB / 484.5 MB, free: 1.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.362, allocations: 64.41 kB / 484.5 MB, free: 1.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.364, allocations: 1.294 MB / 485.8 MB, free: 15.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3641, allocations: 49.7 kB / 485.9 MB, free: 15.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008809/0.3649, allocations: 1.074 MB / 486.9 MB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.3653, allocations: 424.4 kB / 487.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004404/0.3657, allocations: 255.5 kB / 487.6 MB, free: 14.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.3659, allocations: 357.9 kB / 488 MB, free: 13.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.3672, allocations: 0.691 MB / 488.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.3688, allocations: 1.07 MB / 489.7 MB, free: 11.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002884/0.3717, allocations: 1.864 MB / 491.6 MB, free: 9.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.3717, allocations: 4 kB / 491.6 MB, free: 9.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004284/0.3759, allocations: 2.339 MB / 493.9 MB, free: 7.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.376, allocations: 8 kB / 493.9 MB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.376, allocations: 12 kB / 493.9 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.377, allocations: 411.4 kB / 494.3 MB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3783, allocations: 331.4 kB / 494.7 MB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/0.3858, allocations: 6.619 MB / 0.4895 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.3871, allocations: 111.8 kB / 0.4896 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.3872, allocations: 60 kB / 0.4897 GB, free: 15.51 MB / 414.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.001405/0.3886, allocations: 0.685 MB / 0.4904 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003346/0.389, allocations: 147.1 kB / 0.4905 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/0.3931, allocations: 2.042 MB / 0.4925 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.3931, allocations: 12 kB / 0.4925 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3931, allocations: 4 kB / 0.4925 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.3931, allocations: 7.969 kB / 0.4925 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008106/0.4012, allocations: 3.949 MB / 0.4964 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.4012, allocations: 4.406 kB / 0.4964 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009762/0.4022, allocations: 223.6 kB / 0.4966 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.4035, allocations: 447.1 kB / 0.497 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.4036, allocations: 31.98 kB / 0.4971 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009251/0.4128, allocations: 8.06 MB / 0.5049 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4128, allocations: 4 kB / 0.5049 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/0.4184, allocations: 3.016 MB / 0.5079 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.4194, allocations: 290.9 kB / 0.5082 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.4197, allocations: 35.92 kB / 0.5082 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009123/0.4206, allocations: 79.91 kB / 0.5083 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/0.4209, allocations: 100.8 kB / 0.5084 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.605e-05/0.421, allocations: 40 kB / 0.5084 GB, free: 11.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001434/0.4224, allocations: 0.8759 MB / 0.5093 GB, free: 10.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4224, allocations: 0 / 0.5093 GB, free: 10.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4241, allocations: 459.9 kB / 0.5097 GB, free: 10.42 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.0004243/0.4245, allocations: 213.7 kB / 0.5099 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.4285, allocations: 2.079 MB / 0.5119 GB, free: 8.086 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4285, allocations: 0 / 0.5119 GB, free: 8.086 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002485/0.4309, allocations: 1.403 MB / 0.5133 GB, free: 6.629 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.4327, allocations: 364 kB / 0.5137 GB, free: 6.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007777/0.4404, allocations: 4.499 MB / 0.518 GB, free: 1.711 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.442, allocations: 1.238 MB / 0.5193 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.443, allocations: 348.5 kB / 0.5196 GB, free: 80 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.4434, allocations: 103.5 kB / 0.5197 GB, free: 15.97 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4434, allocations: 0 / 0.5197 GB, free: 15.97 MB / 446.1 MB Notification: Performance of Templates: time 0.2979/0.7413, allocations: 26.49 MB / 0.5456 GB, free: 96.06 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.9617161569185555]