Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.000765/0.000765, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001162/0.001927, allocations: 445.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.0007238/0.0007238, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009165/0.00164, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8939/0.8939, allocations: 158.6 MB / 171.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1353/1.029, allocations: 49.48 MB / 220.5 MB, free: 1.453 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 221.9 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.371e-05, allocations: 6.25 kB / 221.9 MB, free: 144 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03532/0.03535, allocations: 37.86 MB / 259.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02201/0.05736, allocations: 11.15 MB / 270.9 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007277/0.06464, allocations: 318.2 kB / 271.2 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01215/0.07678, allocations: 9.093 MB / 280.3 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.08779, allocations: 3.774 MB / 284 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1139/0.2017, allocations: 2.402 MB / 286.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01527/0.217, allocations: 14.03 MB / 300.5 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02878/0.2458, allocations: 17.51 MB / 318 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02454/0.2703, allocations: 11.4 MB / 329.4 MB, free: 6.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01244/0.2827, allocations: 7.824 MB / 337.2 MB, free: 464 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006868/0.2896, allocations: 2.088 MB / 339.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009396/0.299, allocations: 2.376 MB / 341.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006295/0.3053, allocations: 3.411 MB / 345.1 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01383/0.3191, allocations: 4.409 MB / 349.5 MB, free: 4.559 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0212/0.3403, allocations: 12.28 MB / 361.8 MB, free: 8.953 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-05/0.3403, allocations: 0 / 361.8 MB, free: 8.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3403, allocations: 0.8125 kB / 361.8 MB, free: 8.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006592/0.341, allocations: 0 / 361.8 MB, free: 8.953 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.03015/0.3712, allocations: 17.74 MB / 379.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3712, allocations: 8.031 kB / 379.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02728/0.3985, allocations: 8.908 MB / 388.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/0.4112, allocations: 3.88 MB / 392.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001097/0.4123, allocations: 0.9432 MB / 393.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00615/0.4184, allocations: 1.249 MB / 394.5 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0318/0.4502, allocations: 10.27 MB / 404.8 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003708/0.4506, allocations: 26.5 kB / 404.8 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001458/0.4521, allocations: 0.5117 MB / 405.3 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006364/0.4527, allocations: 0.7293 MB / 406 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.4672, allocations: 5.251 MB / 411.3 MB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1995/0.6667, allocations: 38.48 MB / 449.8 MB, free: 64.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/0.6785, allocations: 8.721 MB / 458.5 MB, free: 63.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/0.6806, allocations: 1.418 MB / 459.9 MB, free: 63.58 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01065/0.6913, allocations: 5.276 MB / 465.2 MB, free: 63.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.6913, allocations: 67.25 kB / 465.3 MB, free: 63.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 6.432e-06/0.6913, allocations: 0 / 465.3 MB, free: 63.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=389): time 0.01727/0.7086, allocations: 8.826 MB / 474.1 MB, free: 61.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.7086, allocations: 97.25 kB / 474.2 MB, free: 61.51 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00366/0.7123, allocations: 3.695 MB / 477.9 MB, free: 60.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.7125, allocations: 88.77 kB / 478 MB, free: 60.83 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00194/0.7145, allocations: 5.56 MB / 483.5 MB, free: 57.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008158/0.7153, allocations: 1.432 MB / 485 MB, free: 56.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001239/0.7165, allocations: 1.405 MB / 486.4 MB, free: 56.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.419e-05/0.7166, allocations: 309 kB / 486.7 MB, free: 55.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.7176, allocations: 0.9414 MB / 487.6 MB, free: 55.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/0.7196, allocations: 4.458 MB / 492.1 MB, free: 51.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/0.7236, allocations: 6.187 MB / 498.2 MB, free: 46.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.843e-05/0.7236, allocations: 36.22 kB / 498.3 MB, free: 46.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.006668/0.7303, allocations: 5.164 MB / 0.4916 GB, free: 46.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.777e-05/0.7304, allocations: 56.84 kB / 0.4917 GB, free: 46.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/0.7306, allocations: 130.2 kB / 0.4918 GB, free: 46.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.7323, allocations: 0.8341 MB / 0.4926 GB, free: 46.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003913/0.7362, allocations: 1.941 MB / 0.4945 GB, free: 46.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004552/0.7407, allocations: 6.101 MB / 0.5005 GB, free: 42.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004012/0.7447, allocations: 318.5 kB / 0.5008 GB, free: 42.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007595/0.7455, allocations: 347.6 kB / 0.5011 GB, free: 42.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002535/0.748, allocations: 0.6662 MB / 0.5018 GB, free: 42.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007903/0.7488, allocations: 431.6 kB / 0.5022 GB, free: 42.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00324/0.7521, allocations: 2.75 MB / 0.5049 GB, free: 41.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.7521, allocations: 40 kB / 0.5049 GB, free: 41.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.7521, allocations: 8 kB / 0.5049 GB, free: 41.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/0.7521, allocations: 20.77 kB / 0.5049 GB, free: 41.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.7629, allocations: 6.928 MB / 0.5117 GB, free: 37.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.763, allocations: 8.031 kB / 0.5117 GB, free: 37.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/0.7649, allocations: 0.7872 MB / 0.5125 GB, free: 36.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/0.7664, allocations: 0.587 MB / 0.5131 GB, free: 36.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.7677, allocations: 0.6535 MB / 0.5137 GB, free: 36.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.7679, allocations: 81.3 kB / 0.5138 GB, free: 36.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003593/0.7715, allocations: 5.637 MB / 0.5193 GB, free: 31.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.7715, allocations: 7.469 kB / 0.5193 GB, free: 31.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004157/0.7757, allocations: 3.279 MB / 0.5225 GB, free: 28.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.7767, allocations: 80.05 kB / 0.5226 GB, free: 28.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.7779, allocations: 113.4 kB / 0.5227 GB, free: 28.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003496/0.7782, allocations: 271.2 kB / 0.5229 GB, free: 27.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.7784, allocations: 72.61 kB / 0.523 GB, free: 27.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001722/0.7801, allocations: 1.672 MB / 0.5246 GB, free: 26.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.7801, allocations: 2.734 kB / 0.5246 GB, free: 26.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005441/0.7855, allocations: 1.97 MB / 0.5266 GB, free: 24.67 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005278/0.7861, allocations: 235.1 kB / 0.5268 GB, free: 24.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005425/0.7915, allocations: 3.938 MB / 0.5306 GB, free: 21.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002688/0.7918, allocations: 163.9 kB / 0.5308 GB, free: 21.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.7936, allocations: 1.744 MB / 0.5325 GB, free: 19.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003559/0.7972, allocations: 1.608 MB / 0.5341 GB, free: 18.26 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07218/0.8693, allocations: 18.38 MB / 0.552 GB, free: 1.617 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/0.8723, allocations: 2.38 MB / 0.5543 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00301/0.8753, allocations: 0.8929 MB / 0.5552 GB, free: 14.35 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/0.8775, allocations: 1.159 MB / 0.5563 GB, free: 13.21 MB / 410.7 MB Notification: Performance of SimCode: time 3.136e-06/0.8775, allocations: 4 kB / 0.5563 GB, free: 13.21 MB / 410.7 MB Notification: Performance of Templates: time 0.2328/1.11, allocations: 75.12 MB / 0.6297 GB, free: 94.98 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 5.243946244008839]