Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001489/0.001489, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.00154/0.00154, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9626/0.9626, allocations: 177.1 MB / 206 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 274.2 MB, free: 4.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.005e-05, allocations: 2.312 kB / 274.2 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0308/0.03083, allocations: 39.2 MB / 313.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.05361, allocations: 11.1 MB / 324.5 MB, free: 1.867 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007683/0.06129, allocations: 378 kB / 324.9 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01371/0.075, allocations: 9.086 MB / 334 MB, free: 8.367 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01215/0.08715, allocations: 3.75 MB / 337.7 MB, free: 4.594 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006181/0.09333, allocations: 2.441 MB / 340.2 MB, free: 2.152 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1549/0.2482, allocations: 13.97 MB / 354.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02696/0.2752, allocations: 17.46 MB / 371.6 MB, free: 11.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01753/0.2927, allocations: 10.93 MB / 382.5 MB, free: 6.445 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01205/0.3048, allocations: 7.601 MB / 390.1 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006387/0.3111, allocations: 2 MB / 392.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009081/0.3202, allocations: 2.382 MB / 394.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005995/0.3262, allocations: 4.16 MB / 398.7 MB, free: 8.578 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01145/0.3377, allocations: 5.247 MB / 403.9 MB, free: 3.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01913/0.3568, allocations: 12.85 MB / 416.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3568, allocations: 0 / 416.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.3568, allocations: 1.812 kB / 416.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006826/0.3575, allocations: 4 kB / 416.8 MB, free: 7.605 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.033/0.3905, allocations: 15.93 MB / 432.7 MB, free: 8.332 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3905, allocations: 12.03 kB / 432.7 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01885/0.4094, allocations: 6.323 MB / 439.1 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01298/0.4224, allocations: 7.445 MB / 446.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001032/0.4234, allocations: 0.9271 MB / 447.4 MB, free: 9.996 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003238/0.4266, allocations: 1.236 MB / 448.7 MB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.454, allocations: 9.685 MB / 458.4 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000444/0.4545, allocations: 23 kB / 458.4 MB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001678/0.4562, allocations: 0.5051 MB / 458.9 MB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005835/0.4567, allocations: 0.6582 MB / 459.5 MB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.4688, allocations: 4.369 MB / 463.9 MB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3405/0.8093, allocations: 48.55 MB / 0.5004 GB, free: 59.33 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00822/0.8175, allocations: 7.979 MB / 0.5082 GB, free: 58.9 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.8195, allocations: 1.505 MB / 0.5097 GB, free: 58.81 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008867/0.8283, allocations: 5.511 MB / 0.5151 GB, free: 58.38 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.8284, allocations: 81.69 kB / 0.5152 GB, free: 58.33 MB / 410.8 MB Notification: Performance of pre-optimization done (n=361): time 4.539e-06/0.8284, allocations: 0 / 0.5152 GB, free: 58.33 MB / 410.8 MB Notification: Performance of matching and sorting (n=403): time 0.01471/0.8431, allocations: 8.882 MB / 0.5238 GB, free: 56.94 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.8431, allocations: 93.02 kB / 0.5239 GB, free: 56.88 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003724/0.8468, allocations: 4.542 MB / 0.5284 GB, free: 56.32 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/0.8471, allocations: 89.92 kB / 0.5285 GB, free: 56.29 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002189/0.8493, allocations: 6.118 MB / 0.5344 GB, free: 53.72 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007662/0.85, allocations: 1.502 MB / 0.5359 GB, free: 52.79 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001325/0.8514, allocations: 1.521 MB / 0.5374 GB, free: 52.66 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.728e-05/0.8514, allocations: 476.8 kB / 0.5378 GB, free: 52.19 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009014/0.8523, allocations: 0.7613 MB / 0.5386 GB, free: 52.18 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/0.8544, allocations: 5.371 MB / 0.5438 GB, free: 46.55 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004238/0.8586, allocations: 6.855 MB / 0.5505 GB, free: 40.84 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.347e-05/0.8587, allocations: 27.88 kB / 0.5505 GB, free: 40.84 MB / 410.8 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.007494/0.8662, allocations: 5.773 MB / 0.5562 GB, free: 40.22 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/0.8663, allocations: 48.5 kB / 0.5562 GB, free: 40.22 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.304e-05/0.8663, allocations: 103.3 kB / 0.5563 GB, free: 40.22 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001636/0.868, allocations: 0.8515 MB / 0.5572 GB, free: 40.13 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/0.8708, allocations: 1.511 MB / 0.5586 GB, free: 39.5 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004613/0.8754, allocations: 8.186 MB / 0.5666 GB, free: 32.58 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/0.8789, allocations: 298.2 kB / 0.5669 GB, free: 32.4 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007543/0.8797, allocations: 315.1 kB / 0.5672 GB, free: 32.16 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.002767/0.8824, allocations: 0.64 MB / 0.5678 GB, free: 31.82 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001153/0.8836, allocations: 0.6592 MB / 0.5685 GB, free: 31.21 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004249/0.8878, allocations: 3.376 MB / 0.5718 GB, free: 29.2 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.8879, allocations: 40 kB / 0.5718 GB, free: 29.16 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.8879, allocations: 8 kB / 0.5718 GB, free: 29.15 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.583e-05/0.8879, allocations: 26.02 kB / 0.5718 GB, free: 29.14 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/0.9029, allocations: 8.985 MB / 0.5806 GB, free: 23.46 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.9029, allocations: 4 kB / 0.5806 GB, free: 23.46 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/0.9046, allocations: 0.6684 MB / 0.5813 GB, free: 22.82 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.906, allocations: 0.7023 MB / 0.582 GB, free: 22.11 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000218/0.9062, allocations: 95.91 kB / 0.5821 GB, free: 22.02 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004198/0.9104, allocations: 7.757 MB / 0.5896 GB, free: 14.04 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.9104, allocations: 7.469 kB / 0.5896 GB, free: 14.04 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/0.916, allocations: 4.223 MB / 0.5938 GB, free: 9.777 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/0.9178, allocations: 0.875 MB / 0.5946 GB, free: 8.898 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006147/0.9184, allocations: 72 kB / 0.5947 GB, free: 8.828 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.9196, allocations: 108 kB / 0.5948 GB, free: 8.723 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003851/0.92, allocations: 302.3 kB / 0.5951 GB, free: 8.43 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.9202, allocations: 91.97 kB / 0.5952 GB, free: 8.34 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002202/0.9224, allocations: 1.989 MB / 0.5971 GB, free: 6.562 MB / 410.8 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9224, allocations: 0 / 0.5971 GB, free: 6.562 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005087/0.9275, allocations: 1.922 MB / 0.599 GB, free: 4.641 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.0004764/0.928, allocations: 278.7 kB / 0.5992 GB, free: 4.402 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005269/0.9332, allocations: 4.354 MB / 0.6035 GB, free: 380 kB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.9332, allocations: 8.062 kB / 0.6035 GB, free: 372 kB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00279/0.936, allocations: 2.171 MB / 0.6056 GB, free: 14.26 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004458/0.9405, allocations: 1.306 MB / 0.6069 GB, free: 13 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02861/0.9691, allocations: 17.46 MB / 0.624 GB, free: 11.42 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004497/0.9736, allocations: 3.092 MB / 0.627 GB, free: 8.293 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003563/0.9772, allocations: 0.8532 MB / 0.6278 GB, free: 7.438 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/0.9797, allocations: 1.341 MB / 0.6291 GB, free: 6.094 MB / 442.8 MB Notification: Performance of SimCode: time 1.473e-06/0.9797, allocations: 3.562 kB / 0.6291 GB, free: 6.094 MB / 442.8 MB Notification: Performance of Templates: time 0.2521/1.232, allocations: 75.58 MB / 0.7029 GB, free: 102.1 MB / 458.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 6.32997686509043]