Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001371/0.001371, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001293/0.001293, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.9578/0.9578, allocations: 177 MB / 205.2 MB, free: 5.051 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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 273.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.071e-05/1.199e-05, allocations: 5.125 kB / 273.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1389/0.1389, allocations: 37.65 MB / 311.1 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02285/0.1617, allocations: 11.14 MB / 322.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009404/0.1711, allocations: 371.2 kB / 322.6 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01265/0.1838, allocations: 9.019 MB / 331.6 MB, free: 7.332 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01164/0.1954, allocations: 3.573 MB / 335.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0061/0.2015, allocations: 2.373 MB / 337.6 MB, free: 1.367 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01535/0.2169, allocations: 13.53 MB / 351.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02869/0.2456, allocations: 17.59 MB / 368.7 MB, free: 1.988 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02077/0.2663, allocations: 10.68 MB / 379.4 MB, free: 7.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01237/0.2787, allocations: 7.536 MB / 386.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005813/0.2845, allocations: 1.941 MB / 388.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007205/0.2917, allocations: 2.355 MB / 391.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006303/0.298, allocations: 4.067 MB / 395.3 MB, free: 7.367 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01148/0.3095, allocations: 5.127 MB / 400.4 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0191/0.3286, allocations: 12.56 MB / 413 MB, free: 5.633 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3286, allocations: 4 kB / 413 MB, free: 5.629 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3286, allocations: 0 / 413 MB, free: 5.629 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005851/0.3292, allocations: 3.984 kB / 413 MB, free: 5.625 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.02547/0.3547, allocations: 14.56 MB / 427.6 MB, free: 6.953 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3547, allocations: 15.98 kB / 427.6 MB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01931/0.374, allocations: 6.33 MB / 433.9 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2485/0.6225, allocations: 4.408 MB / 438.3 MB, free: 76.71 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007589/0.6233, allocations: 0.9035 MB / 439.2 MB, free: 76.69 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003106/0.6264, allocations: 1.196 MB / 440.4 MB, free: 76.68 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02373/0.6501, allocations: 9.658 MB / 450.1 MB, free: 75.77 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004345/0.6506, allocations: 26.81 kB / 450.1 MB, free: 75.77 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001768/0.6523, allocations: 0.491 MB / 450.6 MB, free: 75.77 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004921/0.6528, allocations: 0.6394 MB / 451.2 MB, free: 75.74 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/0.6657, allocations: 4.673 MB / 455.9 MB, free: 75.4 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04864/0.7144, allocations: 36.62 MB / 492.5 MB, free: 47.45 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006284/0.7206, allocations: 6.128 MB / 498.6 MB, free: 41.51 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.7223, allocations: 1.287 MB / 499.9 MB, free: 40.26 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008774/0.731, allocations: 4.216 MB / 0.4923 GB, free: 36.34 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.7311, allocations: 76.78 kB / 0.4924 GB, free: 36.25 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 7.103e-06/0.7311, allocations: 3.984 kB / 0.4924 GB, free: 36.25 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01809/0.7492, allocations: 8.327 MB / 0.5005 GB, free: 28.37 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.7492, allocations: 90.47 kB / 0.5006 GB, free: 28.27 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003442/0.7527, allocations: 3.331 MB / 0.5039 GB, free: 25.6 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003188/0.753, allocations: 89.7 kB / 0.504 GB, free: 25.51 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.7546, allocations: 5.114 MB / 0.509 GB, free: 20.56 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008994/0.7555, allocations: 1.405 MB / 0.5103 GB, free: 19.24 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.7569, allocations: 1.238 MB / 0.5115 GB, free: 18.12 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.739e-05/0.7569, allocations: 313 kB / 0.5118 GB, free: 17.82 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.7583, allocations: 0.8659 MB / 0.5127 GB, free: 16.95 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.7603, allocations: 3.683 MB / 0.5163 GB, free: 12.07 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004511/0.7648, allocations: 5.225 MB / 0.5214 GB, free: 5.996 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.172e-05/0.7649, allocations: 32 kB / 0.5214 GB, free: 5.965 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.007185/0.7721, allocations: 4.521 MB / 0.5258 GB, free: 2.066 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.397e-05/0.7722, allocations: 48 kB / 0.5259 GB, free: 2.02 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.7723, allocations: 100 kB / 0.526 GB, free: 1.922 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001976/0.7743, allocations: 0.8039 MB / 0.5268 GB, free: 1.117 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004562/0.7788, allocations: 1.559 MB / 0.5283 GB, free: 15.68 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006582/0.7854, allocations: 6.023 MB / 0.5342 GB, free: 9.535 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/0.789, allocations: 283.7 kB / 0.5344 GB, free: 9.258 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009105/0.7899, allocations: 292 kB / 0.5347 GB, free: 8.973 MB / 394.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.003241/0.7932, allocations: 0.5786 MB / 0.5353 GB, free: 8.5 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.7943, allocations: 419.5 kB / 0.5357 GB, free: 8.09 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004346/0.7987, allocations: 2.705 MB / 0.5383 GB, free: 5.383 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.32e-05/0.7987, allocations: 40 kB / 0.5384 GB, free: 5.344 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.7987, allocations: 10.41 kB / 0.5384 GB, free: 5.336 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-05/0.7988, allocations: 19.92 kB / 0.5384 GB, free: 5.316 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.8128, allocations: 6.798 MB / 0.545 GB, free: 15.21 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.8128, allocations: 4 kB / 0.545 GB, free: 15.2 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/0.8147, allocations: 0.6979 MB / 0.5457 GB, free: 14.54 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/0.8162, allocations: 0.6643 MB / 0.5464 GB, free: 13.87 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003634/0.8166, allocations: 75.97 kB / 0.5464 GB, free: 13.8 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004489/0.8211, allocations: 5.65 MB / 0.5519 GB, free: 7.996 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.8211, allocations: 6.906 kB / 0.552 GB, free: 7.992 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005046/0.8262, allocations: 3.276 MB / 0.5552 GB, free: 4.711 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/0.8279, allocations: 0.5778 MB / 0.5557 GB, free: 4.133 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005386/0.8284, allocations: 68 kB / 0.5558 GB, free: 4.066 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009969/0.8294, allocations: 104 kB / 0.5559 GB, free: 3.965 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004247/0.8299, allocations: 274 kB / 0.5561 GB, free: 3.699 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/0.83, allocations: 87.95 kB / 0.5562 GB, free: 3.613 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001787/0.8318, allocations: 1.538 MB / 0.5577 GB, free: 2.266 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8318, allocations: 0 / 0.5577 GB, free: 2.266 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005469/0.8373, allocations: 1.863 MB / 0.5595 GB, free: 412 kB / 410.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.000594/0.8379, allocations: 253 kB / 0.5598 GB, free: 192 kB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005257/0.8431, allocations: 3.644 MB / 0.5633 GB, free: 12.88 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001388/0.8433, allocations: 76.94 kB / 0.5634 GB, free: 12.8 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.8453, allocations: 1.773 MB / 0.5651 GB, free: 11.09 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.8487, allocations: 1.192 MB / 0.5663 GB, free: 9.953 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.156/1.005, allocations: 16.82 MB / 0.5827 GB, free: 103.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003663/1.008, allocations: 2.265 MB / 0.585 GB, free: 103.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002878/1.011, allocations: 0.8079 MB / 0.5857 GB, free: 103.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002346/1.014, allocations: 1.126 MB / 0.5868 GB, free: 103.4 MB / 426.8 MB Notification: Performance of SimCode: time 1.953e-06/1.014, allocations: 0 / 0.5868 GB, free: 103.4 MB / 426.8 MB Notification: Performance of Templates: time 0.1028/1.116, allocations: 70.8 MB / 0.656 GB, free: 55.19 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.108162136282772]