Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.055 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-beta.om/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=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-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 68.77 kB / 379.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2908, allocations: 53.36 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0117/0.3025, allocations: 9.771 MB / 442.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006362/0.3089, allocations: 3.178 MB / 445.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.3104, allocations: 71.5 kB / 445.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.3125, allocations: 0.7182 MB / 446.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.3153, allocations: 0.8116 MB / 447 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009783/0.3163, allocations: 399.4 kB / 447.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004086/0.3204, allocations: 2.571 MB / 449.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/0.3227, allocations: 1.303 MB / 451.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002216/0.325, allocations: 1.223 MB / 452.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002505/0.3275, allocations: 1.537 MB / 454 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006918/0.3281, allocations: 316 kB / 454.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.3291, allocations: 427.8 kB / 454.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001135/0.3303, allocations: 0.9193 MB / 455.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001796/0.3321, allocations: 1.415 MB / 457.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005037/0.3371, allocations: 4.178 MB / 461.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3371, allocations: 4 kB / 461.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3371, allocations: 0 / 461.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.911e-05/0.3372, allocations: 4 kB / 461.2 MB, free: 9.977 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.005785/0.343, allocations: 2.904 MB / 464.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.343, allocations: 8.031 kB / 464.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008292/0.3439, allocations: 307.2 kB / 464.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/0.3466, allocations: 1.475 MB / 465.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.3468, allocations: 164.3 kB / 466.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003447/0.3471, allocations: 212 kB / 466.3 MB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005154/0.3523, allocations: 2.803 MB / 469.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.817e-05/0.3523, allocations: 7.984 kB / 469.1 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/0.3525, allocations: 84 kB / 469.2 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.3526, allocations: 104.2 kB / 469.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004538/0.3572, allocations: 2.347 MB / 471.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.3712, allocations: 8.367 MB / 480 MB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.3735, allocations: 1.186 MB / 481.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.3752, allocations: 0.8929 MB / 482.1 MB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002446/0.3755, allocations: 45.97 kB / 482.1 MB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.3755, allocations: 51.5 kB / 482.2 MB, free: 4.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 4.188e-06/0.3755, allocations: 0 / 482.2 MB, free: 4.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01336/0.3889, allocations: 5.736 MB / 487.9 MB, free: 14.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.389, allocations: 64.41 kB / 488 MB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.3911, allocations: 1.438 MB / 489.4 MB, free: 13.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.143e-05/0.3912, allocations: 53.64 kB / 489.5 MB, free: 13.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000857/0.3921, allocations: 1.067 MB / 490.5 MB, free: 12.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003845/0.3925, allocations: 432.3 kB / 491 MB, free: 11.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004066/0.3929, allocations: 255.5 kB / 491.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3931, allocations: 357.9 kB / 491.6 MB, free: 11.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.3942, allocations: 0.6948 MB / 492.3 MB, free: 10.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.3958, allocations: 1.066 MB / 493.3 MB, free: 9.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/0.3985, allocations: 1.868 MB / 495.2 MB, free: 7.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-06/0.3985, allocations: 4 kB / 495.2 MB, free: 7.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004287/0.4028, allocations: 2.343 MB / 497.5 MB, free: 4.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.4028, allocations: 12 kB / 497.5 MB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/0.4028, allocations: 15.94 kB / 497.6 MB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.4039, allocations: 411.3 kB / 498 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4051, allocations: 327.5 kB / 498.3 MB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008064/0.4132, allocations: 6.746 MB / 0.4932 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.4148, allocations: 103.8 kB / 0.4933 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.4149, allocations: 56 kB / 0.4933 GB, free: 12.78 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.001408/0.4163, allocations: 0.6988 MB / 0.494 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/0.4166, allocations: 166.9 kB / 0.4942 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003689/0.4203, allocations: 2.04 MB / 0.4962 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4203, allocations: 12 kB / 0.4962 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.4203, allocations: 4 kB / 0.4962 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.4203, allocations: 7.969 kB / 0.4962 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/0.4279, allocations: 4.452 MB / 0.5005 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.4279, allocations: 0 / 0.5005 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000893/0.4288, allocations: 211.7 kB / 0.5007 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.4299, allocations: 455.4 kB / 0.5012 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.43, allocations: 39.97 kB / 0.5012 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008412/0.4384, allocations: 8.207 MB / 0.5092 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/0.4384, allocations: 11.88 kB / 0.5092 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005197/0.4436, allocations: 3.025 MB / 0.5122 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008935/0.4445, allocations: 306.8 kB / 0.5125 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/0.4447, allocations: 35.98 kB / 0.5125 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008332/0.4456, allocations: 87.78 kB / 0.5126 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.4458, allocations: 96.77 kB / 0.5127 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.4459, allocations: 35.98 kB / 0.5127 GB, free: 8.238 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.4474, allocations: 0.9888 MB / 0.5137 GB, free: 7.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4474, allocations: 0 / 0.5137 GB, free: 7.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001519/0.4489, allocations: 463.9 kB / 0.5141 GB, free: 6.797 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.0003609/0.4492, allocations: 202.8 kB / 0.5143 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003718/0.453, allocations: 2.083 MB / 0.5164 GB, free: 4.469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.453, allocations: 0 / 0.5164 GB, free: 4.469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00245/0.4554, allocations: 1.391 MB / 0.5177 GB, free: 3.023 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.4572, allocations: 427.8 kB / 0.5181 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007409/0.4646, allocations: 4.523 MB / 0.5226 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/0.4663, allocations: 1.811 MB / 0.5243 GB, free: 12.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00112/0.4674, allocations: 365.6 kB / 0.5247 GB, free: 11.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.4677, allocations: 111.4 kB / 0.5248 GB, free: 11.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4677, allocations: 0 / 0.5248 GB, free: 11.7 MB / 446.1 MB Notification: Performance of Templates: time 0.2698/0.7375, allocations: 26.07 MB / 0.5502 GB, free: 96.09 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.768227403052151]