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.0009567/0.0009567, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001039/0.001039, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9958/0.9958, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.681e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009398/0.009425, allocations: 9.602 MB / 282.6 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006361/0.01579, allocations: 3.108 MB / 285.7 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001418/0.0172, allocations: 67.56 kB / 285.8 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.01885, allocations: 0.6713 MB / 286.4 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002535/0.02138, allocations: 0.8498 MB / 287.3 MB, free: 3.172 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008304/0.02221, allocations: 403.3 kB / 287.7 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.02481, allocations: 2.645 MB / 290.3 MB, free: 124 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1405/0.1653, allocations: 1.262 MB / 291.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003191/0.1685, allocations: 1.787 MB / 293.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002693/0.1712, allocations: 1.405 MB / 294.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009743/0.1721, allocations: 317.5 kB / 295.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.1732, allocations: 424.8 kB / 295.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.1742, allocations: 0.9435 MB / 296.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001912/0.1761, allocations: 0.9879 MB / 297.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003546/0.1796, allocations: 2.313 MB / 299.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1796, allocations: 0 / 299.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1796, allocations: 1.375 kB / 299.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.098e-05/0.1797, allocations: 1.75 kB / 299.8 MB, free: 15.3 MB / 266.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.004293/0.184, allocations: 3.061 MB / 302.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.184, allocations: 8.875 kB / 302.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008659/0.1849, allocations: 489.7 kB / 303.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001819/0.1867, allocations: 1.436 MB / 304.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.144e-05/0.1868, allocations: 160.3 kB / 304.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.187, allocations: 210.7 kB / 305.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.1893, allocations: 1.729 MB / 306.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-05/0.1894, allocations: 6.844 kB / 306.8 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.1895, allocations: 88.59 kB / 306.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-05/0.1896, allocations: 104.1 kB / 307 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.1911, allocations: 0.7979 MB / 307.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007804/0.1989, allocations: 7.014 MB / 314.8 MB, free: 6.035 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2, allocations: 0.6658 MB / 315.5 MB, free: 5.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008575/0.2009, allocations: 0.4988 MB / 316 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002149/0.2011, allocations: 52.62 kB / 316.1 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.2011, allocations: 47.77 kB / 316.1 MB, free: 4.762 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 3.988e-06/0.2011, allocations: 0 / 316.1 MB, free: 4.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.006324/0.2074, allocations: 3.167 MB / 319.3 MB, free: 1.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2075, allocations: 64.41 kB / 319.3 MB, free: 1.508 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.2088, allocations: 1.174 MB / 320.5 MB, free: 336 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.023e-05/0.2088, allocations: 45.7 kB / 320.5 MB, free: 284 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009065/0.2097, allocations: 1.153 MB / 321.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003449/0.2101, allocations: 438.5 kB / 322.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003954/0.2105, allocations: 261.2 kB / 322.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.2107, allocations: 0.5355 MB / 322.9 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/0.2112, allocations: 231.7 kB / 323.1 MB, free: 13.72 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008676/0.2121, allocations: 0.7599 MB / 323.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.2135, allocations: 1.092 MB / 325 MB, free: 11.48 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.2135, allocations: 4 kB / 325 MB, free: 11.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002379/0.2159, allocations: 1.333 MB / 326.3 MB, free: 10.21 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.2159, allocations: 15.98 kB / 326.4 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.2159, allocations: 8 kB / 326.4 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007243/0.2167, allocations: 256.9 kB / 326.6 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009229/0.2176, allocations: 317 kB / 326.9 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004958/0.2226, allocations: 6.608 MB / 333.5 MB, free: 2.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009712/0.2235, allocations: 103.8 kB / 333.6 MB, free: 2.605 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.633e-05/0.2236, allocations: 63.98 kB / 333.7 MB, free: 2.543 MB / 282.7 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.0007217/0.2243, allocations: 241 kB / 333.9 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000294/0.2246, allocations: 187.1 kB / 334.1 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.2266, allocations: 1.091 MB / 335.2 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.2266, allocations: 12 kB / 335.2 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.2266, allocations: 4 kB / 335.2 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.2266, allocations: 11.92 kB / 335.2 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/0.2316, allocations: 3.01 MB / 338.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.2316, allocations: 4 kB / 338.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/0.2323, allocations: 206.2 kB / 338.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008215/0.2331, allocations: 304.5 kB / 338.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.843e-05/0.2332, allocations: 31.98 kB / 338.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005552/0.2387, allocations: 8.407 MB / 347.2 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2387, allocations: 4.047 kB / 347.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.2415, allocations: 1.613 MB / 348.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006345/0.2421, allocations: 281.9 kB / 349.1 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.2423, allocations: 27.98 kB / 349.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005814/0.2429, allocations: 75.92 kB / 349.2 MB, free: 2.492 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.2431, allocations: 99.66 kB / 349.3 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-05/0.2431, allocations: 32 kB / 349.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001009/0.2442, allocations: 0.6961 MB / 350 MB, free: 1.668 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2442, allocations: 0 / 350 MB, free: 1.668 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001709/0.2459, allocations: 460 kB / 350.4 MB, free: 1.219 MB / 298.7 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.0003731/0.2462, allocations: 191.5 kB / 350.6 MB, free: 1.035 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.2485, allocations: 1.476 MB / 352.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.2485, allocations: 4.062 kB / 352.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.2499, allocations: 1.261 MB / 353.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.2511, allocations: 384 kB / 353.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0058/0.2569, allocations: 3.819 MB / 357.6 MB, free: 9.977 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.2574, allocations: 0.5592 MB / 358.1 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006924/0.2581, allocations: 292.5 kB / 358.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.2583, allocations: 112.5 kB / 358.5 MB, free: 8.988 MB / 314.7 MB Notification: Performance of SimCode: time 1.853e-06/0.2583, allocations: 0 / 358.5 MB, free: 8.988 MB / 314.7 MB Notification: Performance of Templates: time 0.03221/0.2906, allocations: 23.39 MB / 381.9 MB, free: 1.988 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6502239662222564]