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.0009341/0.0009341, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.0011/0.0011, allocations: 166 kB / 24.82 MB, free: 9.309 MB / 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 1.082/1.082, allocations: 177.2 MB / 205.3 MB, free: 5.5 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 2.434e-06/2.434e-06, allocations: 0 / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.984e-05/3.227e-05, allocations: 2.312 kB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008953/0.008986, allocations: 9.332 MB / 282.7 MB, free: 7.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006034/0.01502, allocations: 3.088 MB / 285.8 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.01673, allocations: 71.5 kB / 285.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.01848, allocations: 0.6674 MB / 286.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002203/0.02069, allocations: 0.8536 MB / 287.4 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.02144, allocations: 407.2 kB / 287.8 MB, free: 2.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002145/0.02358, allocations: 2.637 MB / 290.5 MB, free: 168 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1192/0.1428, allocations: 1.263 MB / 291.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003168/0.146, allocations: 2.035 MB / 293.8 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002281/0.1483, allocations: 1.321 MB / 295.1 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008664/0.1491, allocations: 306.8 kB / 295.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009872/0.1501, allocations: 408.5 kB / 295.8 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007329/0.1509, allocations: 0.8985 MB / 296.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.1527, allocations: 0.9586 MB / 297.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003/0.1557, allocations: 2.257 MB / 299.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1557, allocations: 1.344 kB / 299.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1557, allocations: 0 / 299.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001094/0.1558, allocations: 1.531 kB / 299.9 MB, free: 15.46 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.004097/0.1599, allocations: 2.914 MB / 302.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1599, allocations: 10 kB / 302.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007938/0.1607, allocations: 488.6 kB / 303.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.1622, allocations: 1.384 MB / 304.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.327e-05/0.1623, allocations: 155.7 kB / 304.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.1625, allocations: 211 kB / 305 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.1642, allocations: 1.591 MB / 306.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.481e-05/0.1642, allocations: 14.53 kB / 306.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.1644, allocations: 82.69 kB / 306.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.406e-05/0.1644, allocations: 110 kB / 306.8 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009686/0.1654, allocations: 0.6257 MB / 307.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006401/0.1718, allocations: 6.779 MB / 314.2 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008423/0.1726, allocations: 0.6546 MB / 314.9 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/0.1732, allocations: 457.7 kB / 315.3 MB, free: 6.125 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001486/0.1733, allocations: 55.7 kB / 315.4 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.1734, allocations: 50.38 kB / 315.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.375e-06/0.1734, allocations: 0 / 315.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003985/0.1774, allocations: 2.491 MB / 317.9 MB, free: 3.531 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.1774, allocations: 60.41 kB / 318 MB, free: 3.461 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008613/0.1782, allocations: 1.134 MB / 319.1 MB, free: 2.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/0.1783, allocations: 45.7 kB / 319.2 MB, free: 2.449 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/0.1788, allocations: 1.15 MB / 320.3 MB, free: 1.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.179, allocations: 441.2 kB / 320.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.1793, allocations: 265.3 kB / 321 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.1794, allocations: 0.5478 MB / 321.6 MB, free: 172 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1796, allocations: 170.8 kB / 321.7 MB, free: 4 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005429/0.1801, allocations: 0.7057 MB / 322.4 MB, free: 15.12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1814, allocations: 1.003 MB / 323.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.1814, allocations: 8 kB / 323.4 MB, free: 13.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001614/0.1831, allocations: 1.209 MB / 324.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1831, allocations: 8 kB / 324.7 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.1831, allocations: 12 kB / 324.7 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005145/0.1836, allocations: 236.9 kB / 324.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005995/0.1842, allocations: 284.3 kB / 325.2 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.1888, allocations: 6.443 MB / 331.6 MB, free: 5.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000876/0.1897, allocations: 51.94 kB / 331.7 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-05/0.1898, allocations: 48 kB / 331.7 MB, free: 5.52 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.0006939/0.1905, allocations: 256.6 kB / 332 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.1907, allocations: 191 kB / 332.2 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.1923, allocations: 0.9765 MB / 333.1 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.1923, allocations: 16 kB / 333.2 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1923, allocations: 4 kB / 333.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1923, allocations: 7.969 kB / 333.2 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004253/0.1966, allocations: 2.857 MB / 336 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.1966, allocations: 4 kB / 336 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005562/0.1971, allocations: 180.3 kB / 336.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006626/0.1978, allocations: 266.6 kB / 336.5 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-05/0.1979, allocations: 31.98 kB / 336.5 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004925/0.2028, allocations: 8.161 MB / 344.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.2028, allocations: 11.22 kB / 344.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.2051, allocations: 1.452 MB / 346.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004634/0.2056, allocations: 242 kB / 346.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.2057, allocations: 35.98 kB / 346.4 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004721/0.2062, allocations: 43.98 kB / 346.4 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.2064, allocations: 100.4 kB / 346.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-05/0.2064, allocations: 28 kB / 346.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006731/0.2071, allocations: 0.6252 MB / 347.2 MB, free: 5.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2071, allocations: 0 / 347.2 MB, free: 5.938 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0015/0.2086, allocations: 455.8 kB / 347.6 MB, free: 5.496 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.0002991/0.2089, allocations: 193.5 kB / 347.8 MB, free: 5.305 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.2105, allocations: 1.374 MB / 349.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2105, allocations: 384 / 349.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.2116, allocations: 1.18 MB / 350.4 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.2128, allocations: 378.5 kB / 350.7 MB, free: 2.387 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.2184, allocations: 3.753 MB / 354.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.2189, allocations: 0.5637 MB / 355.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000578/0.2195, allocations: 192.7 kB / 355.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007358/0.2202, allocations: 430 kB / 355.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2202, allocations: 4 kB / 355.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of Templates: time 0.0364/0.2566, allocations: 23.83 MB / 379.5 MB, free: 5.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.5369134517386556]