Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009939/0.0009939, allocations: 80.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 166.2 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9008/0.9008, allocations: 177 MB / 205.9 MB, free: 4.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.[0-9,]+..v.re|terminalBoxQS.plugSupply.pin.[0-9,]+..v.im|terminalBoxQS.plugSupply.pin.[0-9,]+..i.re|terminalBoxQS.plugSupply.pin.[0-9,]+..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 274.2 MB, free: 4.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.88e-05, allocations: 2.312 kB / 274.2 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03753/0.03755, allocations: 39.21 MB / 313.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01976/0.05731, allocations: 11.1 MB / 324.5 MB, free: 1.719 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004642/0.06195, allocations: 377.9 kB / 324.9 MB, free: 1.348 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008818/0.07077, allocations: 9.074 MB / 333.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006789/0.07756, allocations: 3.762 MB / 337.7 MB, free: 4.445 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.08095, allocations: 2.433 MB / 340.1 MB, free: 2.012 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1318/0.2127, allocations: 13.98 MB / 354.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01843/0.2312, allocations: 17.46 MB / 371.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01053/0.2417, allocations: 10.92 MB / 382.5 MB, free: 6.277 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008869/0.2506, allocations: 7.6 MB / 390.1 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004306/0.2549, allocations: 1.998 MB / 392.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005385/0.2603, allocations: 2.389 MB / 394.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003333/0.2636, allocations: 4.161 MB / 398.6 MB, free: 8.344 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007342/0.2709, allocations: 5.247 MB / 403.9 MB, free: 3.336 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.2837, allocations: 12.85 MB / 416.7 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2837, allocations: 0 / 416.7 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2837, allocations: 0 / 416.7 MB, free: 7.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000409/0.2841, allocations: 0 / 416.7 MB, free: 7.371 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.02095/0.305, allocations: 15.95 MB / 432.7 MB, free: 8.086 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.3051, allocations: 8.031 kB / 432.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01614/0.3212, allocations: 6.328 MB / 439 MB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008608/0.3298, allocations: 7.463 MB / 446.5 MB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004397/0.3303, allocations: 0.9279 MB / 447.4 MB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.3316, allocations: 1.237 MB / 448.6 MB, free: 8.516 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.3431, allocations: 9.676 MB / 458.3 MB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001882/0.3433, allocations: 22.84 kB / 458.3 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007914/0.3441, allocations: 0.507 MB / 458.9 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006506/0.3447, allocations: 0.6582 MB / 459.5 MB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006473/0.3512, allocations: 4.366 MB / 463.9 MB, free: 9.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2798/0.631, allocations: 48.55 MB / 0.5004 GB, free: 59.32 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00671/0.6378, allocations: 7.977 MB / 0.5082 GB, free: 58.88 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/0.6391, allocations: 1.492 MB / 0.5097 GB, free: 58.79 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006379/0.6455, allocations: 5.528 MB / 0.5151 GB, free: 58.36 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.6456, allocations: 80.42 kB / 0.5151 GB, free: 58.31 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.488e-06/0.6456, allocations: 0 / 0.5151 GB, free: 58.31 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01291/0.6585, allocations: 8.873 MB / 0.5238 GB, free: 56.92 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.6585, allocations: 92.73 kB / 0.5239 GB, free: 56.86 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003109/0.6616, allocations: 4.535 MB / 0.5283 GB, free: 56.3 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.6618, allocations: 91.17 kB / 0.5284 GB, free: 56.27 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001842/0.6636, allocations: 6.123 MB / 0.5344 GB, free: 53.7 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006051/0.6642, allocations: 1.505 MB / 0.5359 GB, free: 52.77 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.6654, allocations: 1.523 MB / 0.5373 GB, free: 52.63 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 2.987e-05/0.6655, allocations: 476.8 kB / 0.5378 GB, free: 52.16 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008329/0.6663, allocations: 0.757 MB / 0.5385 GB, free: 52.15 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.6681, allocations: 5.367 MB / 0.5438 GB, free: 46.52 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.6715, allocations: 6.863 MB / 0.5505 GB, free: 40.81 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-05/0.6715, allocations: 33.56 kB / 0.5505 GB, free: 40.81 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.005557/0.677, allocations: 5.766 MB / 0.5561 GB, free: 40.2 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.6771, allocations: 49.97 kB / 0.5562 GB, free: 40.2 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.294e-05/0.6771, allocations: 103.5 kB / 0.5563 GB, free: 40.2 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.6785, allocations: 0.8641 MB / 0.5571 GB, free: 40.1 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002478/0.681, allocations: 1.508 MB / 0.5586 GB, free: 39.21 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004283/0.6853, allocations: 8.175 MB / 0.5666 GB, free: 32.3 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/0.6876, allocations: 296.8 kB / 0.5669 GB, free: 32.12 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002845/0.6879, allocations: 311.1 kB / 0.5672 GB, free: 31.88 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.002019/0.6899, allocations: 0.6425 MB / 0.5678 GB, free: 31.54 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006464/0.6905, allocations: 0.6548 MB / 0.5684 GB, free: 30.93 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.6943, allocations: 3.379 MB / 0.5717 GB, free: 28.91 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.6943, allocations: 40 kB / 0.5718 GB, free: 28.88 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6943, allocations: 14 kB / 0.5718 GB, free: 28.86 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.6943, allocations: 25.5 kB / 0.5718 GB, free: 28.86 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009676/0.704, allocations: 8.98 MB / 0.5806 GB, free: 23.06 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.704, allocations: 4 kB / 0.5806 GB, free: 23.05 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.7055, allocations: 0.6684 MB / 0.5812 GB, free: 22.42 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.7067, allocations: 0.7053 MB / 0.5819 GB, free: 21.71 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.7069, allocations: 99.89 kB / 0.582 GB, free: 21.61 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.7106, allocations: 7.746 MB / 0.5896 GB, free: 13.64 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7106, allocations: 4 kB / 0.5896 GB, free: 13.64 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004288/0.7149, allocations: 4.224 MB / 0.5937 GB, free: 9.383 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.7159, allocations: 0.8775 MB / 0.5946 GB, free: 8.504 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/0.7163, allocations: 79.83 kB / 0.5946 GB, free: 8.43 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.7173, allocations: 104 kB / 0.5947 GB, free: 8.328 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/0.7176, allocations: 302.3 kB / 0.595 GB, free: 8.035 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/0.7177, allocations: 91.97 kB / 0.5951 GB, free: 7.945 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001434/0.7191, allocations: 1.991 MB / 0.5971 GB, free: 6.164 MB / 410.8 MB Notification: Performance of sort global known variables: time 7e-08/0.7191, allocations: 0 / 0.5971 GB, free: 6.164 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004407/0.7235, allocations: 1.922 MB / 0.5989 GB, free: 4.242 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.0004124/0.724, allocations: 271 kB / 0.5992 GB, free: 4.008 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005145/0.7291, allocations: 4.362 MB / 0.6035 GB, free: 15.97 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7291, allocations: 4.062 kB / 0.6035 GB, free: 15.96 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002685/0.7318, allocations: 2.162 MB / 0.6056 GB, free: 13.87 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003829/0.7356, allocations: 1.305 MB / 0.6069 GB, free: 12.61 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/0.7588, allocations: 17.47 MB / 0.6239 GB, free: 11.02 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003027/0.7619, allocations: 3.097 MB / 0.6269 GB, free: 7.891 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.002648/0.7645, allocations: 0.8573 MB / 0.6278 GB, free: 7.031 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002602/0.7671, allocations: 1.341 MB / 0.6291 GB, free: 5.688 MB / 442.8 MB Notification: Performance of SimCode: time 1.012e-06/0.7671, allocations: 0 / 0.6291 GB, free: 5.688 MB / 442.8 MB Notification: Performance of Templates: time 0.215/0.9821, allocations: 75.58 MB / 0.7029 GB, free: 101.4 MB / 458.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_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.772875004913658]