Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001321/0.001321, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 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.00149/0.00149, allocations: 184.4 kB / 23.7 MB, free: 4.191 MB / 14.72 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 1.424/1.424, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 47.92 kB / 370.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.336, allocations: 52.19 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01872/0.3547, allocations: 13.26 MB / 436.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.3657, allocations: 4.824 MB / 441.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003172/0.3689, allocations: 123.2 kB / 441.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003676/0.3725, allocations: 1.052 MB / 442.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005029/0.3776, allocations: 1.301 MB / 443.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00329/0.3809, allocations: 0.879 MB / 444.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006312/0.3872, allocations: 3.608 MB / 448.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004525/0.3917, allocations: 1.831 MB / 450 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003538/0.3952, allocations: 1.776 MB / 451.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004973/0.4002, allocations: 1.942 MB / 453.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001488/0.4017, allocations: 476 kB / 454.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002516/0.4042, allocations: 0.6677 MB / 454.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001928/0.4061, allocations: 1.157 MB / 456 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003799/0.4099, allocations: 1.618 MB / 457.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01001/0.42, allocations: 6.309 MB / 463.9 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.42, allocations: 4 kB / 463.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.42, allocations: 0 / 463.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002393/0.4202, allocations: 0 / 463.9 MB, free: 5.438 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01372/0.4339, allocations: 4.248 MB / 468.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.434, allocations: 8.031 kB / 468.2 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003403/0.4374, allocations: 0.6427 MB / 468.8 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004864/0.4422, allocations: 2.19 MB / 471 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/0.4425, allocations: 238.7 kB / 471.2 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006089/0.4431, allocations: 320.1 kB / 471.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007487/0.4506, allocations: 4.118 MB / 475.7 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.534e-05/0.4506, allocations: 7.938 kB / 475.7 MB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002928/0.4509, allocations: 124 kB / 475.8 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/0.4511, allocations: 154.2 kB / 475.9 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006312/0.4574, allocations: 3.378 MB / 479.3 MB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.4776, allocations: 11.27 MB / 490.6 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003413/0.481, allocations: 1.662 MB / 492.2 MB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.4826, allocations: 0.9026 MB / 493.1 MB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004749/0.4874, allocations: 2.105 MB / 495.3 MB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.4874, allocations: 47.5 kB / 495.3 MB, free: 5.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.876e-06/0.4874, allocations: 0 / 495.3 MB, free: 5.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01248/0.4999, allocations: 5.792 MB / 0.4893 GB, free: 15.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.5, allocations: 68.72 kB / 0.4894 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/0.5026, allocations: 1.739 MB / 0.4911 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.5027, allocations: 49.7 kB / 0.4912 GB, free: 13.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.504, allocations: 1.574 MB / 0.4927 GB, free: 12.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004667/0.5045, allocations: 0.5035 MB / 0.4932 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005305/0.505, allocations: 335.4 kB / 0.4935 GB, free: 11.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.5051, allocations: 301.1 kB / 0.4938 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.5064, allocations: 0.7652 MB / 0.4945 GB, free: 10.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001797/0.5082, allocations: 1.404 MB / 0.4959 GB, free: 8.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.5114, allocations: 2.312 MB / 0.4982 GB, free: 5.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.5115, allocations: 4 kB / 0.4982 GB, free: 5.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004345/0.5158, allocations: 2.471 MB / 0.5006 GB, free: 3.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.5158, allocations: 16 kB / 0.5006 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.5159, allocations: 16 kB / 0.5006 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.5163, allocations: 122.5 kB / 0.5007 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/0.5181, allocations: 483.2 kB / 0.5012 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.5192, allocations: 1.287 MB / 0.5025 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.5207, allocations: 107.9 kB / 0.5026 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.5209, allocations: 83.98 kB / 0.5026 GB, free: 1.285 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001861/0.5227, allocations: 0.9852 MB / 0.5036 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.5231, allocations: 194.7 kB / 0.5038 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003523/0.5267, allocations: 1.948 MB / 0.5057 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.5267, allocations: 19.88 kB / 0.5057 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5267, allocations: 0 / 0.5057 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.5267, allocations: 11.97 kB / 0.5057 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007837/0.5345, allocations: 4.219 MB / 0.5098 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.5345, allocations: 0 / 0.5098 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.5359, allocations: 315.5 kB / 0.5101 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.5362, allocations: 110.6 kB / 0.5102 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.668e-05/0.5363, allocations: 27.98 kB / 0.5103 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.5374, allocations: 1.241 MB / 0.5115 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.5374, allocations: 4 kB / 0.5115 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004853/0.5422, allocations: 3.087 MB / 0.5145 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009406/0.5432, allocations: 374.5 kB / 0.5149 GB, free: 4.496 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.5434, allocations: 24 kB / 0.5149 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009453/0.5443, allocations: 79.91 kB / 0.515 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.5445, allocations: 89.14 kB / 0.515 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.124e-05/0.5446, allocations: 43.92 kB / 0.5151 GB, free: 4.266 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001816/0.5464, allocations: 1.148 MB / 0.5162 GB, free: 3.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5464, allocations: 0 / 0.5162 GB, free: 3.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001686/0.5481, allocations: 0.5351 MB / 0.5167 GB, free: 2.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0003089/0.5484, allocations: 159 kB / 0.5169 GB, free: 2.426 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.5518, allocations: 1.984 MB / 0.5188 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5518, allocations: 0 / 0.5188 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.5534, allocations: 0.9489 MB / 0.5197 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.5557, allocations: 463.5 kB / 0.5202 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.567, allocations: 5.679 MB / 0.5257 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002541/0.5695, allocations: 1.701 MB / 0.5274 GB, free: 7.531 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001903/0.5714, allocations: 0.4965 MB / 0.5279 GB, free: 7.031 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005539/0.572, allocations: 147.3 kB / 0.528 GB, free: 6.887 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.572, allocations: 0 / 0.528 GB, free: 6.887 MB / 446.1 MB Notification: Performance of Templates: time 0.2601/0.832, allocations: 28.1 MB / 0.5555 GB, free: 95.87 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",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.834908654913306]