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.00107/0.00107, allocations: 76.48 kB / 9.93 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001664/0.002733, allocations: 449.7 kB / 10.37 MB, free: 332 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.001004/0.001004, allocations: 144.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001129/0.002133, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9386/0.9386, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07805/1.017, allocations: 52.49 MB / 238.3 MB, free: 4.434 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.323e-06/1.323e-06, allocations: 3.938 kB / 239.6 MB, free: 3.148 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.236e-05, allocations: 2.312 kB / 239.6 MB, free: 3.145 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1326/0.1326, allocations: 37.31 MB / 276.9 MB, free: 2.359 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01799/0.1506, allocations: 10.97 MB / 287.9 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005149/0.1557, allocations: 366.1 kB / 288.2 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009557/0.1653, allocations: 9.045 MB / 297.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00858/0.1739, allocations: 3.563 MB / 300.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004257/0.1781, allocations: 2.35 MB / 303.2 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.1893, allocations: 13.48 MB / 316.7 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02074/0.21, allocations: 17.17 MB / 333.8 MB, free: 2.141 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01882/0.2289, allocations: 11.07 MB / 344.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01119/0.24, allocations: 7.495 MB / 352.4 MB, free: 340 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004674/0.2447, allocations: 1.938 MB / 354.3 MB, free: 14.39 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006201/0.2509, allocations: 2.335 MB / 356.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004039/0.255, allocations: 3.248 MB / 359.9 MB, free: 8.832 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008081/0.263, allocations: 4.278 MB / 364.2 MB, free: 4.547 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.017/0.28, allocations: 11.87 MB / 376.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-05/0.2801, allocations: 0 / 376.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2801, allocations: 0 / 376.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006178/0.2807, allocations: 0 / 376.1 MB, free: 9.07 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.02615/0.3068, allocations: 17.05 MB / 393.1 MB, free: 8.676 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3069, allocations: 12.03 kB / 393.1 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01706/0.3239, allocations: 6.384 MB / 399.5 MB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/0.3339, allocations: 4.372 MB / 403.9 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008696/0.3348, allocations: 0.9071 MB / 404.8 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002683/0.3375, allocations: 1.199 MB / 406 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.3523, allocations: 9.621 MB / 415.6 MB, free: 2.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/0.3526, allocations: 19.83 kB / 415.6 MB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007857/0.3533, allocations: 0.4961 MB / 416.1 MB, free: 1.516 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004141/0.3538, allocations: 0.646 MB / 416.8 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1318/0.4856, allocations: 4.642 MB / 421.4 MB, free: 82.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04022/0.5258, allocations: 36.74 MB / 458.2 MB, free: 68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005589/0.5314, allocations: 6.093 MB / 464.2 MB, free: 66.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.5326, allocations: 1.282 MB / 465.5 MB, free: 66.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005708/0.5383, allocations: 4.149 MB / 469.7 MB, free: 62.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.5384, allocations: 75.42 kB / 469.8 MB, free: 62.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=349): time 5.47e-06/0.5384, allocations: 4 kB / 469.8 MB, free: 62.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=389): time 0.01239/0.5508, allocations: 8.289 MB / 478 MB, free: 54.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.5508, allocations: 98.41 kB / 478.1 MB, free: 54.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.5527, allocations: 3.316 MB / 481.5 MB, free: 51.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.5529, allocations: 85.7 kB / 481.5 MB, free: 51.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.554, allocations: 5.113 MB / 486.7 MB, free: 46.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004935/0.5545, allocations: 1.403 MB / 488.1 MB, free: 45.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009253/0.5554, allocations: 1.232 MB / 489.3 MB, free: 44.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.202e-05/0.5554, allocations: 301.1 kB / 489.6 MB, free: 43.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008392/0.5563, allocations: 0.8659 MB / 490.4 MB, free: 42.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.5576, allocations: 3.685 MB / 494.1 MB, free: 38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002767/0.5604, allocations: 5.209 MB / 499.3 MB, free: 31.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.496e-05/0.5604, allocations: 28 kB / 499.4 MB, free: 31.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.004176/0.5646, allocations: 4.515 MB / 0.4921 GB, free: 28.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.5646, allocations: 44 kB / 0.4921 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.814e-05/0.5647, allocations: 100 kB / 0.4922 GB, free: 27.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.566, allocations: 0.8125 MB / 0.493 GB, free: 27.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.5687, allocations: 1.663 MB / 0.4946 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.5722, allocations: 6.03 MB / 0.5005 GB, free: 19.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/0.5745, allocations: 287.9 kB / 0.5008 GB, free: 19.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.5748, allocations: 292 kB / 0.5011 GB, free: 18.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002021/0.5768, allocations: 0.5789 MB / 0.5016 GB, free: 18.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005169/0.5774, allocations: 411.6 kB / 0.502 GB, free: 17.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.5803, allocations: 2.728 MB / 0.5047 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.5803, allocations: 41.75 kB / 0.5047 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.5803, allocations: 8 kB / 0.5047 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.5803, allocations: 19.92 kB / 0.5048 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008199/0.5885, allocations: 6.783 MB / 0.5114 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.5885, allocations: 7.984 kB / 0.5114 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/0.5902, allocations: 0.7487 MB / 0.5121 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.5913, allocations: 0.572 MB / 0.5127 GB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/0.5925, allocations: 0.661 MB / 0.5133 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/0.5926, allocations: 75.98 kB / 0.5134 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003327/0.5959, allocations: 5.651 MB / 0.5189 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.5959, allocations: 4 kB / 0.5189 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/0.6003, allocations: 3.258 MB / 0.5221 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006016/0.6009, allocations: 75.92 kB / 0.5222 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.6019, allocations: 116 kB / 0.5223 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.6023, allocations: 265.8 kB / 0.5225 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/0.6025, allocations: 79.97 kB / 0.5226 GB, free: 13.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001816/0.6043, allocations: 1.533 MB / 0.5241 GB, free: 12.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6043, allocations: 0 / 0.5241 GB, free: 12.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004488/0.6088, allocations: 1.863 MB / 0.5259 GB, free: 10.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (368): * Single equations (assignments): 363 * 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%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004672/0.6092, allocations: 246.7 kB / 0.5262 GB, free: 9.996 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004739/0.614, allocations: 3.635 MB / 0.5297 GB, free: 6.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002132/0.6142, allocations: 126 kB / 0.5298 GB, free: 6.555 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.616, allocations: 1.776 MB / 0.5316 GB, free: 4.852 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/0.6195, allocations: 1.543 MB / 0.5331 GB, free: 3.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07181/0.6913, allocations: 17.39 MB / 0.5501 GB, free: 1.875 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/0.6948, allocations: 2.273 MB / 0.5523 GB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00298/0.6978, allocations: 0.804 MB / 0.5531 GB, free: 14.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/0.6998, allocations: 1.109 MB / 0.5541 GB, free: 13.64 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/0.6998, allocations: 2.516 kB / 0.5542 GB, free: 13.64 MB / 426.7 MB Notification: Performance of Templates: time 0.2224/0.9222, allocations: 73.03 MB / 0.6255 GB, free: 90.45 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.886419510468841]