Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001086/0.001086, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001518/0.002604, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00137/0.00247, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9585/0.9585, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09509/1.054, allocations: 53.64 MB / 243.2 MB, free: 15.6 MB / 250.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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.556e-05/3.756e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01346/0.01349, allocations: 10.12 MB / 254.6 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008044/0.02154, allocations: 3.555 MB / 258.2 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001881/0.02342, allocations: 71.5 kB / 258.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.02491, allocations: 0.784 MB / 259.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002151/0.02706, allocations: 0.9195 MB / 260 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007964/0.02785, allocations: 427.2 kB / 260.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.03076, allocations: 2.871 MB / 263.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.03222, allocations: 1.344 MB / 264.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002933/0.03516, allocations: 2.328 MB / 266.9 MB, free: 7.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00165/0.03681, allocations: 1.383 MB / 268.3 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005112/0.03732, allocations: 324 kB / 268.6 MB, free: 6.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008887/0.03821, allocations: 431.8 kB / 269.1 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005822/0.03879, allocations: 0.7753 MB / 269.8 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.0398, allocations: 0.8383 MB / 270.7 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002448/0.04225, allocations: 2.231 MB / 272.9 MB, free: 1.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.429e-05/0.04226, allocations: 0 / 272.9 MB, free: 1.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.04226, allocations: 0 / 272.9 MB, free: 1.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.592e-05/0.04235, allocations: 0 / 272.9 MB, free: 1.75 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.1221/0.1645, allocations: 3.341 MB / 276.2 MB, free: 20.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1645, allocations: 9.406 kB / 276.3 MB, free: 20.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000814/0.1653, allocations: 491.4 kB / 276.7 MB, free: 19.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.1672, allocations: 1.158 MB / 277.9 MB, free: 19.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.1673, allocations: 164.1 kB / 278.1 MB, free: 19.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.1675, allocations: 227.4 kB / 278.3 MB, free: 19.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.1696, allocations: 1.69 MB / 280 MB, free: 19.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.609e-05/0.1697, allocations: 7.344 kB / 280 MB, free: 19.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.1698, allocations: 92.28 kB / 280.1 MB, free: 19.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.1699, allocations: 115.7 kB / 280.2 MB, free: 19.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.1711, allocations: 0.6546 MB / 280.8 MB, free: 19.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006977/0.1781, allocations: 5.908 MB / 286.7 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007954/0.1789, allocations: 0.6506 MB / 287.4 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005492/0.1794, allocations: 434 kB / 287.8 MB, free: 16.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001635/0.1796, allocations: 53.89 kB / 287.9 MB, free: 16.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1796, allocations: 44.94 kB / 287.9 MB, free: 16.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 3.547e-06/0.1796, allocations: 5.969 kB / 287.9 MB, free: 16.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.00417/0.1838, allocations: 2.58 MB / 290.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.1838, allocations: 76.39 kB / 290.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006299/0.1844, allocations: 1.054 MB / 291.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.582e-05/0.1845, allocations: 47.36 kB / 291.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.1847, allocations: 0.9456 MB / 292.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.1849, allocations: 444 kB / 293 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.1851, allocations: 259.9 kB / 293.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.083e-05/0.1851, allocations: 303.8 kB / 293.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1854, allocations: 170.4 kB / 293.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.1856, allocations: 0.5827 MB / 294.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005769/0.1862, allocations: 0.9202 MB / 295.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1862, allocations: 4 kB / 295.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00112/0.1873, allocations: 1.044 MB / 296.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1873, allocations: 12.28 kB / 296.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1874, allocations: 16 kB / 296.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004335/0.1878, allocations: 246.2 kB / 296.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006287/0.1884, allocations: 355.4 kB / 296.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.1906, allocations: 4.754 MB / 301.7 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.1912, allocations: 59.98 kB / 301.7 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/0.1913, allocations: 55.97 kB / 301.8 MB, free: 5.355 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.0004019/0.1917, allocations: 208.3 kB / 302 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.1919, allocations: 135.9 kB / 302.1 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000918/0.1928, allocations: 0.8794 MB / 303 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1928, allocations: 12 kB / 303 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1928, allocations: 7.984 kB / 303 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1928, allocations: 3.984 kB / 303 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002558/0.1953, allocations: 2.513 MB / 305.5 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1954, allocations: 4 kB / 305.6 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.1958, allocations: 215.8 kB / 305.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.1961, allocations: 213.7 kB / 306 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005022/0.1966, allocations: 313.2 kB / 306.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-05/0.1966, allocations: 31.98 kB / 306.3 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.2001, allocations: 5.949 MB / 312.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.2001, allocations: 4 kB / 312.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.2015, allocations: 1.3 MB / 313.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/0.2017, allocations: 31.98 kB / 313.6 MB, free: 9.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003694/0.2021, allocations: 51.97 kB / 313.6 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.2022, allocations: 108.7 kB / 313.7 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.2023, allocations: 28 kB / 313.8 MB, free: 9.168 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004811/0.2027, allocations: 0.524 MB / 314.3 MB, free: 8.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2027, allocations: 0 / 314.3 MB, free: 8.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001307/0.2041, allocations: 472.1 kB / 314.8 MB, free: 8.242 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0003097/0.2044, allocations: 188 kB / 314.9 MB, free: 8.051 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.2058, allocations: 1.18 MB / 316.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.028e-05/0.2059, allocations: 33.12 kB / 316.2 MB, free: 6.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.207, allocations: 0.949 MB / 317.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.2081, allocations: 0.5423 MB / 317.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.2228, allocations: 3.971 MB / 321.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.2233, allocations: 0.5302 MB / 322.2 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000698/0.224, allocations: 217.9 kB / 322.4 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006368/0.2246, allocations: 415.1 kB / 322.8 MB, free: 48 kB / 282.7 MB Notification: Performance of SimCode: time 2.305e-06/0.2246, allocations: 4 kB / 322.8 MB, free: 44 kB / 282.7 MB Notification: Performance of Templates: time 0.04239/0.267, allocations: 27.28 MB / 350 MB, free: 5.191 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_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.26850135717541]