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.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.001037/0.001037, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.00102/0.00102, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.9228/0.9228, allocations: 177.1 MB / 205 MB, free: 5.281 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.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.809e-05/1.969e-05, allocations: 2.312 kB / 273 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1364/0.1364, allocations: 39.38 MB / 312.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.1525, allocations: 10.59 MB / 323 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004951/0.1575, allocations: 369.3 kB / 323.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009836/0.1673, allocations: 9.119 MB / 332.5 MB, free: 6.781 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00658/0.1739, allocations: 3.584 MB / 336.1 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003214/0.1771, allocations: 2.397 MB / 338.5 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.1872, allocations: 13.51 MB / 352 MB, free: 3.227 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01824/0.2055, allocations: 17.19 MB / 369.2 MB, free: 1.875 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009746/0.2152, allocations: 10.66 MB / 379.8 MB, free: 7.199 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007217/0.2225, allocations: 7.423 MB / 387.2 MB, free: 15.76 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002443/0.2249, allocations: 1.938 MB / 389.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003218/0.2281, allocations: 2.362 MB / 391.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002515/0.2306, allocations: 4.071 MB / 395.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004996/0.2356, allocations: 5.103 MB / 400.7 MB, free: 2.266 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.2467, allocations: 12.57 MB / 413.3 MB, free: 5.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2467, allocations: 0 / 413.3 MB, free: 5.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2467, allocations: 0 / 413.3 MB, free: 5.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002204/0.2469, allocations: 4 kB / 413.3 MB, free: 5.656 MB / 362.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.01891/0.2658, allocations: 16.06 MB / 429.3 MB, free: 5.465 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2659, allocations: 8.031 kB / 429.4 MB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2479/0.5137, allocations: 7.867 MB / 437.2 MB, free: 75.02 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/0.5269, allocations: 7.727 MB / 444.9 MB, free: 74.58 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006496/0.5276, allocations: 0.9044 MB / 445.9 MB, free: 74.55 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001791/0.5294, allocations: 1.207 MB / 447.1 MB, free: 74.54 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.5472, allocations: 10.28 MB / 457.3 MB, free: 73.6 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.5474, allocations: 16.08 kB / 457.4 MB, free: 73.59 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007784/0.5482, allocations: 0.4939 MB / 457.8 MB, free: 73.59 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000362/0.5486, allocations: 0.642 MB / 458.5 MB, free: 73.57 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009704/0.5583, allocations: 5.426 MB / 463.9 MB, free: 72.73 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03967/0.5979, allocations: 47.42 MB / 0.4994 GB, free: 27.35 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007992/0.6059, allocations: 8.874 MB / 0.508 GB, free: 20.1 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.6078, allocations: 1.676 MB / 0.5097 GB, free: 18.41 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006379/0.6141, allocations: 5.652 MB / 0.5152 GB, free: 13 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.6142, allocations: 72.14 kB / 0.5152 GB, free: 12.91 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.188e-06/0.6142, allocations: 0 / 0.5152 GB, free: 12.91 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.02441/0.6386, allocations: 10.74 MB / 0.5257 GB, free: 2.543 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.6386, allocations: 92.89 kB / 0.5258 GB, free: 2.441 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005186/0.6438, allocations: 4.418 MB / 0.5301 GB, free: 14 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.6441, allocations: 85.7 kB / 0.5302 GB, free: 13.91 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003177/0.6472, allocations: 5.904 MB / 0.536 GB, free: 7.992 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.6482, allocations: 1.44 MB / 0.5374 GB, free: 6.57 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.6497, allocations: 1.46 MB / 0.5388 GB, free: 5.098 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.6498, allocations: 480.8 kB / 0.5393 GB, free: 4.625 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001677/0.6515, allocations: 0.9618 MB / 0.5402 GB, free: 3.66 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003662/0.6552, allocations: 5.424 MB / 0.5455 GB, free: 12.34 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006727/0.6619, allocations: 7.072 MB / 0.5524 GB, free: 3.734 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-05/0.662, allocations: 28 kB / 0.5524 GB, free: 3.707 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.009121/0.6711, allocations: 6.142 MB / 0.5584 GB, free: 14.16 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.946e-05/0.6712, allocations: 48 kB / 0.5585 GB, free: 14.12 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.6713, allocations: 100 kB / 0.5586 GB, free: 14.02 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001858/0.6731, allocations: 0.8904 MB / 0.5595 GB, free: 13.11 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003134/0.6763, allocations: 1.564 MB / 0.561 GB, free: 11.66 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008231/0.6845, allocations: 8.465 MB / 0.5692 GB, free: 2.898 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/0.6888, allocations: 387.6 kB / 0.5696 GB, free: 2.52 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/0.6899, allocations: 360 kB / 0.57 GB, free: 2.168 MB / 426.8 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.002859/0.6927, allocations: 0.6271 MB / 0.5706 GB, free: 1.645 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009949/0.6937, allocations: 0.6217 MB / 0.5712 GB, free: 1.02 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005649/0.6994, allocations: 3.635 MB / 0.5747 GB, free: 13.36 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/0.6994, allocations: 44 kB / 0.5748 GB, free: 13.32 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.6994, allocations: 8 kB / 0.5748 GB, free: 13.31 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.387e-05/0.6994, allocations: 19.92 kB / 0.5748 GB, free: 13.29 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01782/0.7173, allocations: 11.44 MB / 0.586 GB, free: 1.879 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.7173, allocations: 4.375 kB / 0.586 GB, free: 1.875 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/0.7195, allocations: 0.7372 MB / 0.5867 GB, free: 1.172 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.7212, allocations: 0.7423 MB / 0.5874 GB, free: 420 kB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/0.7215, allocations: 83.97 kB / 0.5875 GB, free: 336 kB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.191/0.9125, allocations: 7.999 MB / 0.5953 GB, free: 100.5 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.9125, allocations: 7.828 kB / 0.5953 GB, free: 100.5 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.9232, allocations: 4.572 MB / 0.5998 GB, free: 99.82 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002437/0.9256, allocations: 0.9018 MB / 0.6007 GB, free: 99.82 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001044/0.9267, allocations: 66.88 kB / 0.6007 GB, free: 99.82 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002015/0.9287, allocations: 206 kB / 0.6009 GB, free: 99.82 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006269/0.9293, allocations: 284.5 kB / 0.6012 GB, free: 99.81 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002781/0.9296, allocations: 118.2 kB / 0.6013 GB, free: 99.81 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.003729/0.9333, allocations: 2.055 MB / 0.6033 GB, free: 99.59 MB / 442.8 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9333, allocations: 0 / 0.6033 GB, free: 99.59 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006399/0.9397, allocations: 1.871 MB / 0.6051 GB, free: 99.59 MB / 442.8 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.0008089/0.9406, allocations: 256.9 kB / 0.6054 GB, free: 99.5 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.007508/0.9481, allocations: 4.66 MB / 0.6099 GB, free: 98.78 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.9481, allocations: 0 / 0.6099 GB, free: 98.78 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0033/0.9514, allocations: 2.289 MB / 0.6122 GB, free: 98.14 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00598/0.9573, allocations: 1.199 MB / 0.6133 GB, free: 98.05 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02741/0.9848, allocations: 17.12 MB / 0.6301 GB, free: 91.54 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005253/0.99, allocations: 3.079 MB / 0.6331 GB, free: 91.21 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.004667/0.9947, allocations: 1.814 MB / 0.6348 GB, free: 90.96 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/0.9961, allocations: 401.2 kB / 0.6352 GB, free: 90.95 MB / 442.8 MB Notification: Performance of SimCode: time 2.244e-06/0.9961, allocations: 4 kB / 0.6352 GB, free: 90.95 MB / 442.8 MB Notification: Performance of Templates: time 0.09071/1.087, allocations: 67.32 MB / 0.701 GB, free: 32.23 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.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.1.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: 5.330691788345575]