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.001835/0.001835, allocations: 96.02 kB / 21.18 MB, free: 0.6484 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.00216/0.00216, allocations: 177 kB / 24.45 MB, free: 3.977 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.451/1.451, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001918/0.001918, allocations: 43.92 kB / 371.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2886, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01843/0.307, allocations: 13.26 MB / 437.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.3184, allocations: 4.831 MB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002937/0.3213, allocations: 119.2 kB / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.3246, allocations: 1.06 MB / 443.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00484/0.3295, allocations: 1.305 MB / 444.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002311/0.3318, allocations: 0.8662 MB / 445.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004785/0.3366, allocations: 3.615 MB / 448.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002687/0.3392, allocations: 1.834 MB / 450.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002734/0.342, allocations: 1.78 MB / 452.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003224/0.3452, allocations: 1.938 MB / 454.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007784/0.346, allocations: 480 kB / 454.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001524/0.3475, allocations: 0.6599 MB / 455.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.3487, allocations: 1.157 MB / 456.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001846/0.3505, allocations: 1.618 MB / 458.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007134/0.3576, allocations: 6.302 MB / 464.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3576, allocations: 0 / 464.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3576, allocations: 7.938 kB / 464.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.751e-05/0.3577, allocations: 0 / 464.7 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.01155/0.3693, allocations: 4.256 MB / 468.9 MB, free: 1.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/0.3693, allocations: 12.03 kB / 468.9 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002874/0.3722, allocations: 0.631 MB / 469.6 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00444/0.3767, allocations: 2.194 MB / 471.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.3769, allocations: 234.7 kB / 472 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004725/0.3773, allocations: 324 kB / 472.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007188/0.3845, allocations: 4.118 MB / 476.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.622e-05/0.3846, allocations: 4 kB / 476.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.3849, allocations: 124 kB / 476.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.385, allocations: 150.2 kB / 476.7 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006381/0.3914, allocations: 3.386 MB / 480.1 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02049/0.4119, allocations: 11.26 MB / 491.3 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003492/0.4154, allocations: 1.669 MB / 493 MB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001612/0.417, allocations: 0.9026 MB / 493.9 MB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004417/0.4214, allocations: 2.102 MB / 496 MB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.4215, allocations: 47.5 kB / 496.1 MB, free: 5.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.587e-06/0.4215, allocations: 0 / 496.1 MB, free: 5.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01259/0.4341, allocations: 5.795 MB / 0.4901 GB, free: 15.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.4341, allocations: 64.72 kB / 0.4902 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002808/0.437, allocations: 1.743 MB / 0.4919 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.4371, allocations: 49.7 kB / 0.4919 GB, free: 13.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.4384, allocations: 1.574 MB / 0.4934 GB, free: 12.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000472/0.4388, allocations: 0.4997 MB / 0.4939 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005492/0.4394, allocations: 335.4 kB / 0.4942 GB, free: 11.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4395, allocations: 301.1 kB / 0.4945 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.4408, allocations: 0.7652 MB / 0.4953 GB, free: 10.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.4427, allocations: 1.404 MB / 0.4967 GB, free: 8.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.4461, allocations: 2.312 MB / 0.4989 GB, free: 5.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.4461, allocations: 4 kB / 0.4989 GB, free: 5.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00434/0.4504, allocations: 2.471 MB / 0.5013 GB, free: 3.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.4505, allocations: 12 kB / 0.5013 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/0.4505, allocations: 20 kB / 0.5014 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/0.4509, allocations: 122.5 kB / 0.5015 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.4527, allocations: 487.6 kB / 0.5019 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.4539, allocations: 1.279 MB / 0.5032 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.4554, allocations: 112 kB / 0.5033 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.4555, allocations: 87.98 kB / 0.5034 GB, free: 1.281 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.001724/0.4572, allocations: 0.9772 MB / 0.5043 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.4576, allocations: 198.7 kB / 0.5045 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.4611, allocations: 1.948 MB / 0.5064 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.4612, allocations: 15.94 kB / 0.5064 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4612, allocations: 4 kB / 0.5064 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.4612, allocations: 7.969 kB / 0.5065 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00784/0.469, allocations: 4.227 MB / 0.5106 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.469, allocations: 0 / 0.5106 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.4704, allocations: 319.8 kB / 0.5109 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000323/0.4707, allocations: 98.47 kB / 0.511 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.17e-05/0.4708, allocations: 27.98 kB / 0.511 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.4719, allocations: 1.245 MB / 0.5122 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4719, allocations: 4.062 kB / 0.5122 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.4769, allocations: 3.083 MB / 0.5152 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.4781, allocations: 370.5 kB / 0.5156 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/0.4783, allocations: 24 kB / 0.5156 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009345/0.4792, allocations: 79.91 kB / 0.5157 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.4795, allocations: 93.2 kB / 0.5158 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.679e-05/0.4796, allocations: 39.98 kB / 0.5158 GB, free: 4.273 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.4815, allocations: 1.152 MB / 0.5169 GB, free: 3.129 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4815, allocations: 0 / 0.5169 GB, free: 3.129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001752/0.4833, allocations: 0.5312 MB / 0.5175 GB, free: 2.598 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.0003625/0.4836, allocations: 166.9 kB / 0.5176 GB, free: 2.426 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.4872, allocations: 1.983 MB / 0.5196 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4872, allocations: 0 / 0.5196 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.4888, allocations: 0.9487 MB / 0.5205 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.00235/0.4911, allocations: 457.6 kB / 0.5209 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.502, allocations: 5.704 MB / 0.5265 GB, free: 9.242 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/0.5041, allocations: 1.666 MB / 0.5281 GB, free: 7.539 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007701/0.5048, allocations: 159.4 kB / 0.5283 GB, free: 7.383 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5048, allocations: 0 / 0.5283 GB, free: 7.383 MB / 446.1 MB Notification: Performance of Templates: time 0.292/0.7968, allocations: 86.45 MB / 0.6127 GB, free: 35.86 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/jenkins1/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/jenkins1/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: 12.327192161697894]