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.001712/0.001712, allocations: 85.39 kB / 21.44 MB, free: 296 kB / 14.72 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.001997/0.001997, allocations: 163.9 kB / 24.7 MB, free: 3.551 MB / 14.72 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 1.351/1.351, allocations: 158.6 MB / 186.5 MB, free: 6.395 MB / 174.1 MB " [Timeout remaining time 178] 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.1.|currentController.y.2.|currentController.y.3.",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.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 299 MB, free: 8.672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.946e-05/3.121e-05, allocations: 2.281 kB / 299 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1864/0.1864, allocations: 34.3 MB / 333.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02148/0.2079, allocations: 10.3 MB / 343.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01126/0.2192, allocations: 321.2 kB / 343.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02047/0.2396, allocations: 8.476 MB / 352.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01503/0.2547, allocations: 3.776 MB / 356.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007516/0.2622, allocations: 2.404 MB / 358.6 MB, free: 340 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02042/0.2826, allocations: 13.95 MB / 372.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03566/0.3183, allocations: 17.28 MB / 389.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02467/0.3429, allocations: 10.64 MB / 400.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01604/0.359, allocations: 7.001 MB / 407.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006094/0.3651, allocations: 1.988 MB / 409.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009518/0.3746, allocations: 2.382 MB / 411.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00724/0.3818, allocations: 4.243 MB / 416.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01377/0.3956, allocations: 5.259 MB / 421.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03931/0.4349, allocations: 26.78 MB / 448.1 MB, free: 9.762 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.4349, allocations: 0 / 448.1 MB, free: 9.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4349, allocations: 0 / 448.1 MB, free: 9.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008888/0.4358, allocations: 0 / 448.1 MB, free: 9.762 MB / 398.1 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.05036/0.4862, allocations: 15.68 MB / 463.8 MB, free: 9.965 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.4862, allocations: 11.98 kB / 463.8 MB, free: 9.953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05427/0.5405, allocations: 9.192 MB / 473 MB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01975/0.5602, allocations: 7.527 MB / 480.5 MB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001106/0.5613, allocations: 0.9393 MB / 481.4 MB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005563/0.5669, allocations: 1.25 MB / 482.7 MB, free: 6.938 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3475/0.9144, allocations: 20.38 MB / 0.4913 GB, free: 118.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005264/0.9149, allocations: 20.5 kB / 0.4913 GB, free: 118.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003821/0.9188, allocations: 0.5096 MB / 0.4918 GB, free: 118 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007703/0.9195, allocations: 0.732 MB / 0.4925 GB, free: 117.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0417/0.9612, allocations: 18.9 MB / 0.511 GB, free: 110.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09041/1.052, allocations: 53.71 MB / 0.5634 GB, free: 56.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02312/1.075, allocations: 14.71 MB / 0.5778 GB, free: 45.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005255/1.08, allocations: 3.734 MB / 0.5814 GB, free: 41.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/1.096, allocations: 10.05 MB / 0.5912 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/1.096, allocations: 77.12 kB / 0.5913 GB, free: 31.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 6.372e-06/1.096, allocations: 0 / 0.5913 GB, free: 31.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.03513/1.131, allocations: 17.84 MB / 0.6087 GB, free: 14.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/1.131, allocations: 90.47 kB / 0.6088 GB, free: 14.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006543/1.138, allocations: 5.269 MB / 0.614 GB, free: 9.398 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007799/1.139, allocations: 85.7 kB / 0.6141 GB, free: 9.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002513/1.141, allocations: 6.08 MB / 0.62 GB, free: 3.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.142, allocations: 1.42 MB / 0.6214 GB, free: 1.816 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001819/1.144, allocations: 1.497 MB / 0.6228 GB, free: 320 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.885e-05/1.144, allocations: 305.1 kB / 0.6231 GB, free: 12 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00526/1.149, allocations: 3.08 MB / 0.6261 GB, free: 12.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008465/1.158, allocations: 6.805 MB / 0.6328 GB, free: 4.344 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01544/1.173, allocations: 10.59 MB / 0.6431 GB, free: 7.953 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001795/1.174, allocations: 36 kB / 0.6432 GB, free: 7.918 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.2023/1.376, allocations: 10.76 MB / 0.6537 GB, free: 131.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.929e-05/1.376, allocations: 59.34 kB / 0.6537 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/1.376, allocations: 126.4 kB / 0.6538 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002339/1.378, allocations: 0.9704 MB / 0.6548 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006905/1.385, allocations: 1.813 MB / 0.6566 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/1.397, allocations: 9.721 MB / 0.6661 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005758/1.403, allocations: 441.7 kB / 0.6665 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/1.404, allocations: 421.6 kB / 0.6669 GB, free: 126.6 MB / 462.1 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.007997/1.412, allocations: 4.455 MB / 0.6712 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001329/1.413, allocations: 0.5432 MB / 0.6718 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009081/1.422, allocations: 6.461 MB / 0.6781 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/1.422, allocations: 46.22 kB / 0.6781 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.422, allocations: 9.688 kB / 0.6781 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.121e-05/1.422, allocations: 18.23 kB / 0.6781 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02179/1.444, allocations: 13.49 MB / 0.6913 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/1.444, allocations: 4.938 kB / 0.6913 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003143/1.447, allocations: 0.7528 MB / 0.6921 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/1.449, allocations: 0.7931 MB / 0.6928 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002572/1.449, allocations: 81.69 kB / 0.6929 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008187/1.457, allocations: 8.843 MB / 0.7015 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.457, allocations: 9.469 kB / 0.7015 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/1.47, allocations: 9.497 MB / 0.7108 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002375/1.472, allocations: 1.001 MB / 0.7118 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009058/1.473, allocations: 69.89 kB / 0.7119 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002437/1.475, allocations: 225.8 kB / 0.7121 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005618/1.476, allocations: 277.1 kB / 0.7123 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/1.476, allocations: 116.4 kB / 0.7125 GB, free: 103 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004319/1.48, allocations: 3.305 MB / 0.7157 GB, free: 100.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.1e-08/1.48, allocations: 0 / 0.7157 GB, free: 100.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007107/1.488, allocations: 1.974 MB / 0.7176 GB, free: 98.28 MB / 462.1 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.0006598/1.488, allocations: 258.2 kB / 0.7179 GB, free: 98.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0105/1.499, allocations: 7.591 MB / 0.7253 GB, free: 91.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.499, allocations: 0.5 kB / 0.7253 GB, free: 91.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004686/1.503, allocations: 3.144 MB / 0.7283 GB, free: 87.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00543/1.509, allocations: 1.19 MB / 0.7295 GB, free: 86.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0283/1.537, allocations: 21.07 MB / 0.7501 GB, free: 65.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006617/1.544, allocations: 7.197 MB / 0.7571 GB, free: 58.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005317/1.549, allocations: 2.321 MB / 0.7594 GB, free: 56.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/1.55, allocations: 416.4 kB / 0.7598 GB, free: 55.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/1.55, allocations: 0 / 0.7598 GB, free: 55.7 MB / 462.1 MB Notification: Performance of Templates: time 0.1122/1.662, allocations: 65.81 MB / 0.824 GB, free: 5.879 MB / 478.1 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.868793655186892]