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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 91.67 kB / 21.19 MB, free: 3.367 MB / 18.57 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.0009279/0.0009279, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9513/0.9513, allocations: 177 MB / 204.8 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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=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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.35e-05, allocations: 6.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008866/0.00889, allocations: 9.614 MB / 282.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004887/0.01378, allocations: 3.104 MB / 285.7 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.01533, allocations: 75.5 kB / 285.7 MB, free: 4.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.01679, allocations: 0.6674 MB / 286.4 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001929/0.01872, allocations: 0.8536 MB / 287.2 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007025/0.01942, allocations: 411.2 kB / 287.6 MB, free: 2.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.02195, allocations: 2.649 MB / 290.3 MB, free: 28 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1116/0.1335, allocations: 1.254 MB / 291.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003195/0.1367, allocations: 2.036 MB / 293.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.1388, allocations: 1.32 MB / 294.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008677/0.1397, allocations: 306.2 kB / 295.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009721/0.1407, allocations: 411.6 kB / 295.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008313/0.1415, allocations: 0.901 MB / 296.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.1435, allocations: 0.9578 MB / 297.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003381/0.1469, allocations: 2.263 MB / 299.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1469, allocations: 5.703 kB / 299.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1469, allocations: 1.375 kB / 299.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.772e-05/0.147, allocations: 0 / 299.7 MB, free: 15.25 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.004332/0.1514, allocations: 2.99 MB / 302.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.1514, allocations: 16.8 kB / 302.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008906/0.1523, allocations: 488.5 kB / 303.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.1541, allocations: 1.464 MB / 304.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.1542, allocations: 157.4 kB / 304.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/0.1544, allocations: 215.2 kB / 305 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.1567, allocations: 1.726 MB / 306.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.678e-05/0.1567, allocations: 11.73 kB / 306.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.1568, allocations: 87.47 kB / 306.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.093e-05/0.1569, allocations: 109.2 kB / 307 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.1583, allocations: 0.7873 MB / 307.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008623/0.1669, allocations: 6.867 MB / 314.6 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.1684, allocations: 0.7101 MB / 315.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000978/0.1694, allocations: 0.4939 MB / 315.8 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002146/0.1696, allocations: 52.97 kB / 315.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.1696, allocations: 49.3 kB / 315.9 MB, free: 4.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 5.541e-06/0.1696, allocations: 3.984 kB / 315.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.007432/0.177, allocations: 3.089 MB / 319 MB, free: 1.699 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.1771, allocations: 68.41 kB / 319.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009832/0.1781, allocations: 1.163 MB / 320.3 MB, free: 464 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.372e-05/0.1781, allocations: 45.7 kB / 320.3 MB, free: 412 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005898/0.1787, allocations: 1.152 MB / 321.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/0.179, allocations: 432.6 kB / 321.9 MB, free: 14.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/0.1792, allocations: 261.1 kB / 322.1 MB, free: 14.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1794, allocations: 0.5433 MB / 322.7 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.1797, allocations: 219.8 kB / 322.9 MB, free: 13.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008008/0.1805, allocations: 0.7529 MB / 323.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1817, allocations: 1.091 MB / 324.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.1817, allocations: 4 kB / 324.7 MB, free: 11.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002042/0.1838, allocations: 1.336 MB / 326.1 MB, free: 10.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.1838, allocations: 8 kB / 326.1 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.1838, allocations: 12 kB / 326.1 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.1844, allocations: 246.5 kB / 326.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000709/0.1851, allocations: 316.8 kB / 326.6 MB, free: 9.773 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.1891, allocations: 6.608 MB / 333.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009471/0.19, allocations: 75.89 kB / 333.3 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.458e-05/0.1901, allocations: 63.92 kB / 333.4 MB, free: 2.711 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.0005928/0.1907, allocations: 244.7 kB / 333.6 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/0.191, allocations: 195 kB / 333.8 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.1926, allocations: 1.082 MB / 334.9 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.1926, allocations: 12 kB / 334.9 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.1926, allocations: 8 kB / 334.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1926, allocations: 3.984 kB / 334.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004011/0.1966, allocations: 2.957 MB / 337.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.1966, allocations: 4 kB / 337.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004929/0.1971, allocations: 198.4 kB / 338.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006625/0.1978, allocations: 291.9 kB / 338.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.812e-05/0.1978, allocations: 35.92 kB / 338.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004452/0.2023, allocations: 8.333 MB / 346.7 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.2023, allocations: 4 kB / 346.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.2045, allocations: 1.591 MB / 348.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005255/0.205, allocations: 269.1 kB / 348.6 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2052, allocations: 31.98 kB / 348.6 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.2056, allocations: 63.94 kB / 348.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.2058, allocations: 96.14 kB / 348.8 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.2058, allocations: 35.98 kB / 348.8 MB, free: 2.723 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009035/0.2067, allocations: 0.6846 MB / 349.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2067, allocations: 0 / 349.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00152/0.2083, allocations: 447.9 kB / 349.9 MB, free: 1.594 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003473/0.2086, allocations: 198.9 kB / 350.1 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.2112, allocations: 1.467 MB / 351.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.2112, allocations: 0 / 351.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.2126, allocations: 1.244 MB / 352.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.2138, allocations: 370.9 kB / 353.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.2191, allocations: 3.788 MB / 357 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.2195, allocations: 0.5598 MB / 357.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006315/0.2202, allocations: 292.5 kB / 357.8 MB, free: 9.535 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.2204, allocations: 108.5 kB / 357.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.773e-06/0.2204, allocations: 3.938 kB / 357.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of Templates: time 0.03297/0.2534, allocations: 23.38 MB / 381.3 MB, free: 2.461 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.491398073732853]