Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.001108/0.001108, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00175/0.002858, allocations: 445.8 kB / 10.44 MB, free: 256 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.001047/0.001047, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00165/0.002697, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.8916/0.8916, allocations: 173.4 MB / 185.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07369/0.9653, 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 239.8 MB, free: 3.059 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.053e-05/1.175e-05, allocations: 2.312 kB / 239.8 MB, free: 3.055 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1267/0.1267, allocations: 37.32 MB / 277.1 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01721/0.144, allocations: 10.97 MB / 288 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004221/0.1482, allocations: 368.1 kB / 288.4 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008298/0.1565, allocations: 9.033 MB / 297.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006346/0.1628, allocations: 3.575 MB / 301 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003309/0.1661, allocations: 2.336 MB / 303.4 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008663/0.1748, allocations: 13.49 MB / 316.8 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01618/0.191, allocations: 17.16 MB / 334 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009284/0.2003, allocations: 11.09 MB / 345.1 MB, free: 7.227 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005721/0.206, allocations: 7.482 MB / 352.6 MB, free: 204 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001792/0.2078, allocations: 1.941 MB / 354.5 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002566/0.2103, allocations: 2.338 MB / 356.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002066/0.2124, allocations: 3.251 MB / 360.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003683/0.2161, allocations: 4.27 MB / 364.4 MB, free: 4.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.2263, allocations: 11.84 MB / 376.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.328e-05/0.2263, allocations: 8 kB / 376.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2263, allocations: 0 / 376.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002738/0.2266, allocations: 0 / 376.2 MB, free: 8.957 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.01915/0.2458, allocations: 17.04 MB / 393.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.2458, allocations: 12.03 kB / 393.3 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.2616, allocations: 6.38 MB / 399.7 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007506/0.2691, allocations: 4.368 MB / 404 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006633/0.2698, allocations: 0.9109 MB / 404.9 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.2711, allocations: 1.195 MB / 406.1 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.2822, allocations: 9.625 MB / 415.7 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/0.2823, allocations: 27.81 kB / 415.8 MB, free: 1.898 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007751/0.2831, allocations: 0.4921 MB / 416.3 MB, free: 1.406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004004/0.2835, allocations: 0.6147 MB / 416.9 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1213/0.4048, allocations: 4.649 MB / 421.5 MB, free: 83.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03392/0.4387, allocations: 36.74 MB / 458.3 MB, free: 69.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005511/0.4442, allocations: 6.086 MB / 464.4 MB, free: 67.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.4454, allocations: 1.286 MB / 465.6 MB, free: 66.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002293/0.4456, allocations: 128.9 kB / 465.8 MB, free: 66.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.4457, allocations: 82.3 kB / 465.8 MB, free: 66.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=475): time 6.172e-06/0.4457, allocations: 0 / 465.8 MB, free: 66.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=517): time 0.0145/0.4602, allocations: 10.13 MB / 476 MB, free: 56.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.4602, allocations: 103.5 kB / 476.1 MB, free: 56.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/0.4621, allocations: 3.29 MB / 479.4 MB, free: 53.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.4622, allocations: 113.7 kB / 479.5 MB, free: 53.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.4633, allocations: 4.93 MB / 484.4 MB, free: 49.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005834/0.4639, allocations: 1.849 MB / 486.3 MB, free: 47.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/0.4649, allocations: 1.359 MB / 487.6 MB, free: 46.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.849e-05/0.4649, allocations: 301.1 kB / 487.9 MB, free: 45.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009823/0.4659, allocations: 0.9666 MB / 488.9 MB, free: 44.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.4674, allocations: 3.812 MB / 492.7 MB, free: 39.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004395/0.4718, allocations: 5.839 MB / 498.5 MB, free: 33.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-05/0.4719, allocations: 32 kB / 498.6 MB, free: 33.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=985) (initialization): time 0.006264/0.4781, allocations: 4.836 MB / 0.4916 GB, free: 28.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.317e-05/0.4782, allocations: 52.03 kB / 0.4917 GB, free: 28.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.838e-05/0.4782, allocations: 100 kB / 0.4917 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001725/0.48, allocations: 0.8216 MB / 0.4925 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/0.4842, allocations: 1.91 MB / 0.4944 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004653/0.4889, allocations: 6.088 MB / 0.5004 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.4917, allocations: 303.7 kB / 0.5006 GB, free: 19.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003868/0.4921, allocations: 304 kB / 0.5009 GB, free: 19.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * 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 (934): * Single equations (assignments): 929 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001945/0.494, allocations: 0.635 MB / 0.5016 GB, free: 18.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000675/0.4947, allocations: 483.5 kB / 0.502 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/0.499, allocations: 3.114 MB / 0.5051 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.499, allocations: 55.98 kB / 0.5051 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.499, allocations: 8 kB / 0.5051 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.189e-05/0.499, allocations: 27.84 kB / 0.5051 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.5106, allocations: 8.376 MB / 0.5133 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.5106, allocations: 4 kB / 0.5133 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002632/0.5132, allocations: 0.9801 MB / 0.5143 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.5143, allocations: 0.6379 MB / 0.5149 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.5158, allocations: 0.6726 MB / 0.5156 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/0.516, allocations: 99.91 kB / 0.5157 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004127/0.5201, allocations: 5.623 MB / 0.5212 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.5202, allocations: 11 kB / 0.5212 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005853/0.526, allocations: 3.931 MB / 0.525 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004636/0.5265, allocations: 97.62 kB / 0.5251 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.5278, allocations: 136 kB / 0.5252 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005161/0.5283, allocations: 342.8 kB / 0.5256 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002332/0.5285, allocations: 104 kB / 0.5257 GB, free: 10.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001551/0.5301, allocations: 1.518 MB / 0.5271 GB, free: 9.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5301, allocations: 0 / 0.5271 GB, free: 9.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004657/0.5347, allocations: 1.977 MB / 0.5291 GB, free: 7.266 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (496): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004/0.5351, allocations: 280.8 kB / 0.5293 GB, free: 7.035 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004116/0.5392, allocations: 4.112 MB / 0.5333 GB, free: 3.289 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001568/0.5394, allocations: 131.3 kB / 0.5335 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.5415, allocations: 2.323 MB / 0.5357 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/0.5469, allocations: 10.61 MB / 0.5461 GB, free: 4.402 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06362/0.6106, allocations: 17.79 MB / 0.5635 GB, free: 2.516 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.6127, allocations: 2.319 MB / 0.5657 GB, free: 172 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.1056/0.7183, allocations: 0.8708 MB / 0.5666 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/0.7206, allocations: 1.207 MB / 0.5678 GB, free: 119 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/0.7206, allocations: 1.062 kB / 0.5678 GB, free: 119 MB / 426.7 MB Notification: Performance of Templates: time 0.08836/0.8089, allocations: 79.31 MB / 0.6452 GB, free: 69.5 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.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: 4.522849736735225]