Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000916/0.000916, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001156/0.002072, allocations: 445.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006504/0.0006504, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009385/0.001589, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9319/0.9319, allocations: 173.4 MB / 185.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09277/1.025, allocations: 52.49 MB / 238.4 MB, free: 4.367 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 239.7 MB, free: 3.074 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.543e-05, allocations: 9.828 kB / 239.7 MB, free: 3.066 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007903/0.007928, allocations: 9.423 MB / 249.2 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.01137, allocations: 3.173 MB / 252.3 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.01183, allocations: 71.5 kB / 252.4 MB, free: 6.348 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009242/0.01276, allocations: 0.679 MB / 253.1 MB, free: 5.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.01383, allocations: 0.8341 MB / 253.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.01426, allocations: 399.3 kB / 254.3 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001634/0.01589, allocations: 2.649 MB / 257 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.01691, allocations: 1.296 MB / 258.3 MB, free: 400 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.01863, allocations: 2.168 MB / 260.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.01965, allocations: 1.317 MB / 261.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004144/0.02007, allocations: 308 kB / 262 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005567/0.02063, allocations: 415.7 kB / 262.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005324/0.02116, allocations: 0.7286 MB / 263.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006072/0.02176, allocations: 0.7876 MB / 264 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.02374, allocations: 2.106 MB / 266.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.587e-05/0.02375, allocations: 0 / 266.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.02375, allocations: 0 / 266.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.625e-05/0.02385, allocations: 3.938 kB / 266.1 MB, free: 8.543 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.003706/0.02756, allocations: 3.149 MB / 269.2 MB, free: 5.352 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.0276, allocations: 8.031 kB / 269.2 MB, free: 5.344 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006627/0.02826, allocations: 461.7 kB / 269.7 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.02965, allocations: 1.085 MB / 270.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.625e-05/0.02973, allocations: 152.6 kB / 270.9 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.02994, allocations: 216.3 kB / 271.1 MB, free: 3.371 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.03168, allocations: 1.617 MB / 272.7 MB, free: 1.641 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.245e-05/0.03172, allocations: 7.938 kB / 272.8 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.03183, allocations: 88 kB / 272.8 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.243e-05/0.03192, allocations: 100.2 kB / 272.9 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008433/0.03276, allocations: 0.6286 MB / 273.6 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/0.1578, allocations: 5.509 MB / 279.1 MB, free: 22.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.1588, allocations: 0.6555 MB / 279.7 MB, free: 22.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006571/0.1595, allocations: 423.6 kB / 280.1 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001895/0.1597, allocations: 56.52 kB / 280.2 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1597, allocations: 44.53 kB / 280.2 MB, free: 22.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 4.639e-06/0.1597, allocations: 0 / 280.2 MB, free: 22.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.005028/0.1647, allocations: 2.501 MB / 282.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.1648, allocations: 63.88 kB / 282.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008949/0.1656, allocations: 0.9506 MB / 283.8 MB, free: 21.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.472e-05/0.1657, allocations: 48.89 kB / 283.8 MB, free: 21.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003426/0.166, allocations: 0.8861 MB / 284.7 MB, free: 21.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.1662, allocations: 420.9 kB / 285.1 MB, free: 20.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/0.1664, allocations: 243.1 kB / 285.3 MB, free: 20.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.206e-05/0.1665, allocations: 375.7 kB / 285.7 MB, free: 20.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.1667, allocations: 162 kB / 285.9 MB, free: 20.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.1671, allocations: 0.5281 MB / 286.4 MB, free: 20 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.1678, allocations: 0.8877 MB / 287.3 MB, free: 19.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.1678, allocations: 4.125 kB / 287.3 MB, free: 19.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001359/0.1692, allocations: 0.9783 MB / 288.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1692, allocations: 10.28 kB / 288.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.1692, allocations: 12.31 kB / 288.3 MB, free: 19.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.1697, allocations: 231.4 kB / 288.5 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.1704, allocations: 338.4 kB / 288.8 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/0.1727, allocations: 4.722 MB / 293.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005137/0.1732, allocations: 55.39 kB / 293.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/0.1732, allocations: 42.25 kB / 293.7 MB, free: 15.45 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.0003854/0.1736, allocations: 198.3 kB / 293.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.1738, allocations: 136.1 kB / 294 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009631/0.1747, allocations: 0.8429 MB / 294.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1747, allocations: 11.84 kB / 294.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1747, allocations: 3.906 kB / 294.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1748, allocations: 6.984 kB / 294.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/0.1774, allocations: 2.388 MB / 297.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1774, allocations: 3.938 kB / 297.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.1779, allocations: 217.9 kB / 297.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.1781, allocations: 189.9 kB / 297.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005128/0.1786, allocations: 295.5 kB / 297.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.1787, allocations: 35.98 kB / 298 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/0.181, allocations: 5.905 MB / 303.9 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.181, allocations: 8 kB / 303.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1821, allocations: 1.245 MB / 305.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.913e-05/0.1822, allocations: 28.05 kB / 305.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.1825, allocations: 51.95 kB / 305.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.1827, allocations: 96.7 kB / 305.3 MB, free: 6.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.1827, allocations: 27.98 kB / 305.3 MB, free: 5.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003169/0.183, allocations: 479.8 kB / 305.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.183, allocations: 0 / 305.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001006/0.184, allocations: 455.9 kB / 306.2 MB, free: 5.121 MB / 266.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.0002775/0.1843, allocations: 181.8 kB / 306.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1854, allocations: 1.151 MB / 307.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.232e-05/0.1854, allocations: 27.11 kB / 307.6 MB, free: 3.777 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000737/0.1861, allocations: 1.005 MB / 308.6 MB, free: 2.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.1876, allocations: 3.403 MB / 312 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.2008, allocations: 3.745 MB / 315.7 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.2013, allocations: 0.5051 MB / 316.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005857/0.2019, allocations: 192.7 kB / 316.4 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005845/0.2024, allocations: 377.1 kB / 316.8 MB, free: 9.797 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2024, allocations: 0 / 316.8 MB, free: 9.797 MB / 282.7 MB Notification: Performance of Templates: time 0.03808/0.2405, allocations: 24.43 MB / 341.2 MB, free: 1.758 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.0625530378893018]