Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008925/0.0008925, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000836/0.000836, allocations: 143.2 kB / 24.98 MB, free: 8.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9259/0.9259, allocations: 173.4 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.441e-05/1.614e-05, allocations: 6.25 kB / 268.1 MB, free: 6.668 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1304/0.1304, allocations: 38.51 MB / 306.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01599/0.1464, allocations: 10.34 MB / 317 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003997/0.1504, allocations: 367.9 kB / 317.3 MB, free: 6.395 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007936/0.1584, allocations: 9.076 MB / 326.4 MB, free: 4 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005949/0.1643, allocations: 3.595 MB / 330 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003197/0.1675, allocations: 2.344 MB / 332.4 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.1777, allocations: 13.4 MB / 345.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01823/0.196, allocations: 17.2 MB / 363 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009843/0.2058, allocations: 10.4 MB / 373.4 MB, free: 1.328 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006756/0.2126, allocations: 7.384 MB / 380.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001933/0.2145, allocations: 1.949 MB / 382.7 MB, free: 7.98 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002779/0.2173, allocations: 2.339 MB / 385 MB, free: 5.641 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002176/0.2195, allocations: 4.11 MB / 389.1 MB, free: 1.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004164/0.2236, allocations: 5.135 MB / 394.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.2342, allocations: 12.6 MB / 406.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2342, allocations: 0 / 406.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2342, allocations: 0 / 406.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002351/0.2345, allocations: 4 kB / 406.9 MB, free: 15.73 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.02037/0.2548, allocations: 16.08 MB / 423 MB, free: 15.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2549, allocations: 12.92 kB / 423 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01837/0.2733, allocations: 7.961 MB / 430.9 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2107/0.4839, allocations: 7.673 MB / 438.6 MB, free: 79.84 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008029/0.4847, allocations: 0.9061 MB / 439.5 MB, free: 79.81 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002473/0.4872, allocations: 1.195 MB / 440.7 MB, free: 79.81 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.5038, allocations: 10.26 MB / 451 MB, free: 78.87 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001985/0.504, allocations: 27.59 kB / 451 MB, free: 78.87 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008312/0.5048, allocations: 0.493 MB / 451.5 MB, free: 78.87 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000405/0.5052, allocations: 0.6367 MB / 452.1 MB, free: 78.84 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.5153, allocations: 5.394 MB / 457.5 MB, free: 78.68 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03776/0.553, allocations: 47.5 MB / 0.4932 GB, free: 42.3 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007887/0.5609, allocations: 8.773 MB / 0.5018 GB, free: 35.13 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.5628, allocations: 1.674 MB / 0.5034 GB, free: 33.45 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006404/0.5692, allocations: 5.627 MB / 0.5089 GB, free: 28.05 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.5692, allocations: 73.12 kB / 0.509 GB, free: 27.97 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 5.059e-06/0.5693, allocations: 4 kB / 0.509 GB, free: 27.96 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01561/0.5849, allocations: 10.79 MB / 0.5195 GB, free: 17.7 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.5849, allocations: 90.47 kB / 0.5196 GB, free: 17.59 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.5887, allocations: 4.423 MB / 0.5239 GB, free: 13.28 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.5889, allocations: 94.56 kB / 0.524 GB, free: 13.18 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/0.5907, allocations: 5.893 MB / 0.5297 GB, free: 7.52 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005986/0.5913, allocations: 1.442 MB / 0.5312 GB, free: 6.094 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.5925, allocations: 1.46 MB / 0.5326 GB, free: 4.621 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.151e-05/0.5926, allocations: 480.7 kB / 0.533 GB, free: 4.148 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.594, allocations: 0.9579 MB / 0.534 GB, free: 3.188 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003098/0.5971, allocations: 5.435 MB / 0.5393 GB, free: 11.87 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006215/0.6033, allocations: 7.052 MB / 0.5462 GB, free: 3.273 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.08e-05/0.6034, allocations: 32.88 kB / 0.5462 GB, free: 3.242 MB / 394.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008097/0.6115, allocations: 6.128 MB / 0.5522 GB, free: 13.71 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.6115, allocations: 48 kB / 0.5522 GB, free: 13.66 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.38e-05/0.6116, allocations: 100 kB / 0.5523 GB, free: 13.57 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.6134, allocations: 0.8891 MB / 0.5532 GB, free: 12.66 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/0.6165, allocations: 1.578 MB / 0.5547 GB, free: 11.2 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006674/0.6232, allocations: 8.473 MB / 0.563 GB, free: 2.426 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/0.6263, allocations: 399.6 kB / 0.5634 GB, free: 2.035 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003994/0.6267, allocations: 356 kB / 0.5637 GB, free: 1.688 MB / 410.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.002289/0.629, allocations: 0.6265 MB / 0.5643 GB, free: 1.168 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009165/0.6299, allocations: 0.6295 MB / 0.565 GB, free: 0.5352 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005573/0.6355, allocations: 3.678 MB / 0.5686 GB, free: 12.83 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.097e-05/0.6355, allocations: 40 kB / 0.5686 GB, free: 12.79 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.6355, allocations: 8 kB / 0.5686 GB, free: 12.79 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/0.6355, allocations: 19.92 kB / 0.5686 GB, free: 12.77 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/0.6507, allocations: 11.44 MB / 0.5798 GB, free: 1.344 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.6507, allocations: 4 kB / 0.5798 GB, free: 1.34 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.6525, allocations: 0.7412 MB / 0.5805 GB, free: 0.6328 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1334/0.7859, allocations: 0.735 MB / 0.5812 GB, free: 99.14 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007066/0.7866, allocations: 85.09 kB / 0.5813 GB, free: 99.14 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005715/0.7923, allocations: 7.994 MB / 0.5891 GB, free: 93.77 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.7923, allocations: 14.69 kB / 0.5891 GB, free: 93.77 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.7999, allocations: 4.555 MB / 0.5936 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.8014, allocations: 0.9039 MB / 0.5945 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005196/0.8019, allocations: 79.48 kB / 0.5945 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.8032, allocations: 219.9 kB / 0.5948 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005722/0.8038, allocations: 282.2 kB / 0.595 GB, free: 93.12 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/0.804, allocations: 108.8 kB / 0.5951 GB, free: 93.12 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00265/0.8066, allocations: 2.068 MB / 0.5971 GB, free: 92.89 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/0.8066, allocations: 0.7812 kB / 0.5971 GB, free: 92.89 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004415/0.811, allocations: 1.872 MB / 0.599 GB, free: 92.89 MB / 426.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.0004763/0.8115, allocations: 257.6 kB / 0.5992 GB, free: 92.81 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.005772/0.8173, allocations: 4.649 MB / 0.6038 GB, free: 92.09 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8173, allocations: 2.281 kB / 0.6038 GB, free: 92.09 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.8197, allocations: 2.301 MB / 0.606 GB, free: 91.45 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/0.8225, allocations: 1.197 MB / 0.6072 GB, free: 91.34 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.8446, allocations: 17.16 MB / 0.6239 GB, free: 84.83 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002899/0.8475, allocations: 3.082 MB / 0.6269 GB, free: 84.5 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.004299/0.8517, allocations: 1.804 MB / 0.6287 GB, free: 84.25 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.8528, allocations: 387 kB / 0.6291 GB, free: 84.24 MB / 426.8 MB Notification: Performance of SimCode: time 1.333e-06/0.8528, allocations: 0 / 0.6291 GB, free: 84.24 MB / 426.8 MB Notification: Performance of Templates: time 0.08133/0.9341, allocations: 64.4 MB / 0.692 GB, free: 26.06 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.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.0.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.113469545962289]