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.001163/0.001163, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001788/0.002951, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001166/0.001166, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001698/0.002864, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9442/0.9442, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09202/1.036, allocations: 53.87 MB / 243.9 MB, free: 14.87 MB / 250.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.532e-06/1.532e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.168e-05, allocations: 6.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007685/0.007707, allocations: 9.469 MB / 254.7 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003661/0.01137, allocations: 3.231 MB / 257.9 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005096/0.01188, allocations: 71.5 kB / 258 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009303/0.01281, allocations: 0.6752 MB / 258.7 MB, free: 68 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.01399, allocations: 0.8497 MB / 259.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006634/0.01465, allocations: 391.4 kB / 259.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.0164, allocations: 2.68 MB / 262.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.01747, allocations: 1.284 MB / 263.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0019/0.01937, allocations: 2.188 MB / 266 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.02076, allocations: 1.321 MB / 267.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002837/0.02105, allocations: 308 kB / 267.7 MB, free: 6.941 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005207/0.02157, allocations: 419.7 kB / 268.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004512/0.02202, allocations: 0.7403 MB / 268.8 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006272/0.02264, allocations: 0.7915 MB / 269.6 MB, free: 4.996 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.02422, allocations: 2.11 MB / 271.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.839e-06/0.02423, allocations: 0 / 271.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.02423, allocations: 0 / 271.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.713e-05/0.02426, allocations: 0 / 271.7 MB, free: 2.879 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.1238/0.1481, allocations: 3.164 MB / 274.9 MB, free: 19.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1481, allocations: 9.812 kB / 274.9 MB, free: 19.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001215/0.1494, allocations: 466.9 kB / 275.4 MB, free: 19.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.1514, allocations: 1.089 MB / 276.4 MB, free: 19.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.1516, allocations: 160.3 kB / 276.6 MB, free: 19.4 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/0.1518, allocations: 213.1 kB / 276.8 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.1541, allocations: 1.615 MB / 278.4 MB, free: 19.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.089e-05/0.1541, allocations: 15.36 kB / 278.4 MB, free: 19.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.1542, allocations: 86.62 kB / 278.5 MB, free: 19.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.1544, allocations: 102.1 kB / 278.6 MB, free: 19.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.1555, allocations: 0.6303 MB / 279.2 MB, free: 18.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006312/0.1618, allocations: 5.509 MB / 284.8 MB, free: 16.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008762/0.1627, allocations: 0.6472 MB / 285.4 MB, free: 16.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00058/0.1633, allocations: 424.3 kB / 285.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001751/0.1634, allocations: 61.77 kB / 285.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.1635, allocations: 43.69 kB / 285.9 MB, free: 16.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.565e-06/0.1635, allocations: 0 / 285.9 MB, free: 16.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004423/0.1679, allocations: 2.496 MB / 288.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.1679, allocations: 64.31 kB / 288.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007527/0.1687, allocations: 0.97 MB / 289.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.1687, allocations: 43.73 kB / 289.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.169, allocations: 0.8844 MB / 290.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.1692, allocations: 428.2 kB / 290.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.1695, allocations: 244.1 kB / 291 MB, free: 14.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.275e-05/0.1695, allocations: 360.1 kB / 291.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.1697, allocations: 165.3 kB / 291.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.17, allocations: 0.534 MB / 292.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000602/0.1706, allocations: 0.8822 MB / 293 MB, free: 13.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1706, allocations: 5.625 kB / 293 MB, free: 13.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001362/0.172, allocations: 0.9733 MB / 293.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.172, allocations: 12 kB / 294 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.172, allocations: 12 kB / 294 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006736/0.1727, allocations: 235.8 kB / 294.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009429/0.1737, allocations: 335.5 kB / 294.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.1769, allocations: 4.718 MB / 299.2 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006697/0.1776, allocations: 55.94 kB / 299.3 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.583e-05/0.1777, allocations: 44 kB / 299.3 MB, free: 6.988 MB / 266.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.0004066/0.1781, allocations: 200.1 kB / 299.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.1783, allocations: 143.7 kB / 299.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.1797, allocations: 0.8337 MB / 300.5 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.1797, allocations: 12 kB / 300.5 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1797, allocations: 7.984 kB / 300.5 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.1797, allocations: 3.984 kB / 300.5 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003754/0.1834, allocations: 2.4 MB / 302.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.1835, allocations: 8.062 kB / 302.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.184, allocations: 207.8 kB / 303.1 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.1844, allocations: 196.7 kB / 303.3 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006086/0.185, allocations: 300.8 kB / 303.6 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.405e-05/0.1851, allocations: 31.98 kB / 303.7 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.1885, allocations: 5.905 MB / 309.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.1885, allocations: 7.938 kB / 309.6 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.1901, allocations: 1.24 MB / 310.8 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/0.1903, allocations: 31.98 kB / 310.8 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003811/0.1907, allocations: 43.98 kB / 310.9 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.1909, allocations: 104.7 kB / 311 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.1909, allocations: 24 kB / 311 MB, free: 11.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004833/0.1914, allocations: 493.2 kB / 311.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1914, allocations: 0 / 311.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001233/0.1926, allocations: 447.9 kB / 311.9 MB, free: 10.25 MB / 282.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.0003777/0.193, allocations: 178 kB / 312.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.195, allocations: 1.159 MB / 313.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.138e-05/0.1951, allocations: 35.11 kB / 313.3 MB, free: 8.891 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.1965, allocations: 0.9954 MB / 314.3 MB, free: 7.879 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/0.1998, allocations: 3.446 MB / 317.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.2141, allocations: 3.743 MB / 321.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.2146, allocations: 0.5052 MB / 322 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006557/0.2153, allocations: 196.8 kB / 322.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/0.2158, allocations: 377.1 kB / 322.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2158, allocations: 0 / 322.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of Templates: time 0.03065/0.2465, allocations: 24.57 MB / 347.1 MB, free: 6.707 MB / 314.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2155738193541765]