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.001346/0.001346, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001504/0.001504, allocations: 171.9 kB / 24.91 MB, free: 8.773 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 1.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.121 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.463e-06/1.463e-06, allocations: 0 / 273.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.361e-05, allocations: 2.312 kB / 273.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1532/0.1532, allocations: 37.65 MB / 311.2 MB, free: 7.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02462/0.1778, allocations: 11.14 MB / 322.3 MB, free: 15.6 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007989/0.1858, allocations: 369.1 kB / 322.7 MB, free: 15.47 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.1989, allocations: 9.019 MB / 331.7 MB, free: 7.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.211, allocations: 3.572 MB / 335.3 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006267/0.2172, allocations: 2.371 MB / 337.6 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01698/0.2342, allocations: 13.53 MB / 351.2 MB, free: 3.852 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0305/0.2647, allocations: 17.59 MB / 368.8 MB, free: 2.062 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02165/0.2864, allocations: 10.69 MB / 379.4 MB, free: 7.355 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01212/0.2985, allocations: 7.536 MB / 387 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005723/0.3042, allocations: 1.938 MB / 388.9 MB, free: 13.87 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008367/0.3126, allocations: 2.362 MB / 391.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00703/0.3196, allocations: 4.071 MB / 395.4 MB, free: 7.422 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01293/0.3325, allocations: 5.107 MB / 400.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02035/0.3529, allocations: 12.57 MB / 413 MB, free: 5.699 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3529, allocations: 0 / 413 MB, free: 5.699 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3529, allocations: 0 / 413 MB, free: 5.699 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005746/0.3535, allocations: 0 / 413 MB, free: 5.699 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.02623/0.3797, allocations: 14.56 MB / 427.6 MB, free: 7.023 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3797, allocations: 12.03 kB / 427.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02216/0.4019, allocations: 6.341 MB / 433.9 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2431/0.645, allocations: 4.378 MB / 438.3 MB, free: 76.79 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007586/0.6457, allocations: 0.9051 MB / 439.2 MB, free: 76.76 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003047/0.6488, allocations: 1.198 MB / 440.4 MB, free: 76.75 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.6726, allocations: 9.664 MB / 450.1 MB, free: 75.85 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004053/0.673, allocations: 21.31 kB / 450.1 MB, free: 75.84 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.6747, allocations: 0.4935 MB / 450.6 MB, free: 75.84 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005682/0.6753, allocations: 0.6355 MB / 451.2 MB, free: 75.81 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/0.6912, allocations: 4.677 MB / 455.9 MB, free: 75.48 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05531/0.7465, allocations: 36.61 MB / 492.5 MB, free: 47.75 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00591/0.7524, allocations: 6.128 MB / 498.7 MB, free: 41.81 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.7537, allocations: 1.292 MB / 500 MB, free: 40.55 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00698/0.7607, allocations: 4.231 MB / 0.4924 GB, free: 36.62 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.7607, allocations: 69.3 kB / 0.4924 GB, free: 36.54 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.629e-06/0.7607, allocations: 0 / 0.4924 GB, free: 36.54 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.0142/0.7749, allocations: 8.321 MB / 0.5006 GB, free: 28.68 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.775, allocations: 90.47 kB / 0.5006 GB, free: 28.57 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/0.7779, allocations: 3.33 MB / 0.5039 GB, free: 25.91 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.7781, allocations: 89.7 kB / 0.504 GB, free: 25.81 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.7794, allocations: 5.111 MB / 0.509 GB, free: 20.87 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006761/0.7801, allocations: 1.405 MB / 0.5103 GB, free: 19.55 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/0.7812, allocations: 1.237 MB / 0.5116 GB, free: 18.43 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.624e-05/0.7812, allocations: 307.7 kB / 0.5118 GB, free: 18.13 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.7823, allocations: 0.8698 MB / 0.5127 GB, free: 17.26 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.7838, allocations: 3.69 MB / 0.5163 GB, free: 12.38 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003564/0.7874, allocations: 5.22 MB / 0.5214 GB, free: 6.309 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.334e-05/0.7874, allocations: 28 kB / 0.5214 GB, free: 6.281 MB / 378.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.00552/0.7929, allocations: 4.533 MB / 0.5259 GB, free: 2.371 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.793, allocations: 48 kB / 0.5259 GB, free: 2.324 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.191e-05/0.7931, allocations: 100 kB / 0.526 GB, free: 2.227 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.7946, allocations: 0.8006 MB / 0.5268 GB, free: 1.426 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003507/0.7981, allocations: 1.563 MB / 0.5283 GB, free: 15.98 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.8034, allocations: 6.013 MB / 0.5342 GB, free: 9.844 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.8069, allocations: 283.9 kB / 0.5344 GB, free: 9.566 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008476/0.8077, allocations: 295.5 kB / 0.5347 GB, free: 9.281 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.002587/0.8103, allocations: 0.5864 MB / 0.5353 GB, free: 8.801 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009179/0.8112, allocations: 423.5 kB / 0.5357 GB, free: 8.387 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003988/0.8152, allocations: 2.7 MB / 0.5383 GB, free: 5.684 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/0.8152, allocations: 40 kB / 0.5384 GB, free: 5.645 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.8153, allocations: 8 kB / 0.5384 GB, free: 5.637 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.381e-05/0.8153, allocations: 19.92 kB / 0.5384 GB, free: 5.617 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/0.8272, allocations: 6.805 MB / 0.545 GB, free: 15.5 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.8272, allocations: 4 kB / 0.5451 GB, free: 15.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/0.8291, allocations: 0.697 MB / 0.5457 GB, free: 14.83 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.8305, allocations: 0.6559 MB / 0.5464 GB, free: 14.17 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002456/0.8307, allocations: 83.97 kB / 0.5465 GB, free: 14.09 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004649/0.8354, allocations: 5.643 MB / 0.552 GB, free: 8.305 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.8354, allocations: 8 kB / 0.552 GB, free: 8.297 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005399/0.8408, allocations: 3.282 MB / 0.5552 GB, free: 5.012 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/0.8425, allocations: 0.5707 MB / 0.5557 GB, free: 4.438 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005822/0.8431, allocations: 68 kB / 0.5558 GB, free: 4.371 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.8443, allocations: 108 kB / 0.5559 GB, free: 4.266 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004501/0.8447, allocations: 273.7 kB / 0.5562 GB, free: 4 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.8449, allocations: 83.97 kB / 0.5562 GB, free: 3.918 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001939/0.8468, allocations: 1.535 MB / 0.5577 GB, free: 2.574 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8468, allocations: 4 kB / 0.5577 GB, free: 2.57 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005853/0.8527, allocations: 1.867 MB / 0.5596 GB, free: 0.7031 MB / 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.0007033/0.8534, allocations: 253.4 kB / 0.5598 GB, free: 496 kB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.00594/0.8593, allocations: 3.634 MB / 0.5634 GB, free: 13.18 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001622/0.8595, allocations: 83.94 kB / 0.5634 GB, free: 13.09 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.8618, allocations: 1.766 MB / 0.5652 GB, free: 11.39 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/0.8655, allocations: 1.196 MB / 0.5663 GB, free: 10.25 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1717/1.037, allocations: 16.81 MB / 0.5828 GB, free: 104.2 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005844/1.043, allocations: 2.264 MB / 0.585 GB, free: 103.8 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003486/1.047, allocations: 0.8102 MB / 0.5858 GB, free: 103.7 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002831/1.049, allocations: 1.125 MB / 0.5869 GB, free: 103.6 MB / 426.8 MB Notification: Performance of SimCode: time 2.134e-06/1.049, allocations: 0 / 0.5869 GB, free: 103.6 MB / 426.8 MB Notification: Performance of Templates: time 0.111/1.16, allocations: 70.79 MB / 0.656 GB, free: 56.05 MB / 426.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 -s gbode -gbm=radauIIA3 -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.327603681012988]