Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001585/0.001585, allocations: 112.8 kB / 19.17 MB, free: 3.871 MB / 14.72 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.002075/0.002075, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.558/1.558, allocations: 230.4 MB / 255.4 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 67.84 kB / 374.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09723, allocations: 53.32 MB / 428.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2145/0.3117, allocations: 15.86 MB / 443.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.3226, allocations: 5.365 MB / 449.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003647/0.3262, allocations: 100.3 kB / 449.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004202/0.3304, allocations: 1.144 MB / 450.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005443/0.3359, allocations: 1.281 MB / 451.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002966/0.3389, allocations: 0.925 MB / 452.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00595/0.3448, allocations: 3.643 MB / 456.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004648/0.3495, allocations: 2.378 MB / 458.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003363/0.3528, allocations: 1.744 MB / 460.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004191/0.357, allocations: 2.143 MB / 462.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.3584, allocations: 479.7 kB / 463.1 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002403/0.3608, allocations: 0.7092 MB / 463.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001374/0.3622, allocations: 1.156 MB / 465 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003195/0.3653, allocations: 2.051 MB / 467.1 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007898/0.3732, allocations: 6.316 MB / 473.4 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3733, allocations: 0 / 473.4 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3733, allocations: 1.5 kB / 473.4 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001364/0.3734, allocations: 0 / 473.4 MB, free: 0.8438 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.01102/0.3844, allocations: 4.367 MB / 477.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3844, allocations: 9.719 kB / 477.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/0.3874, allocations: 0.6369 MB / 478.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004784/0.3922, allocations: 2.306 MB / 480.7 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.3924, allocations: 234.7 kB / 480.9 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005571/0.3929, allocations: 315.1 kB / 481.2 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007483/0.4004, allocations: 4.054 MB / 485.3 MB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-05/0.4005, allocations: 11.94 kB / 485.3 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/0.4008, allocations: 128 kB / 485.4 MB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.4009, allocations: 149 kB / 485.6 MB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006158/0.4071, allocations: 3.39 MB / 489 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02358/0.4307, allocations: 13.38 MB / 0.4906 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004721/0.4354, allocations: 4.165 MB / 0.4946 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001697/0.4371, allocations: 0.9365 MB / 0.4955 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005581/0.4427, allocations: 2.863 MB / 0.4983 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.251e-05/0.4427, allocations: 47.5 kB / 0.4984 GB, free: 13.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.956e-06/0.4427, allocations: 0 / 0.4984 GB, free: 13.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01258/0.4553, allocations: 6.034 MB / 0.5043 GB, free: 6.984 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4554, allocations: 68.72 kB / 0.5043 GB, free: 6.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003028/0.4584, allocations: 1.913 MB / 0.5062 GB, free: 4.945 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.4585, allocations: 53.64 kB / 0.5063 GB, free: 4.887 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.4597, allocations: 1.556 MB / 0.5078 GB, free: 3.316 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004515/0.4602, allocations: 0.5074 MB / 0.5083 GB, free: 2.805 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005352/0.4607, allocations: 335.4 kB / 0.5086 GB, free: 2.469 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4608, allocations: 309.1 kB / 0.5089 GB, free: 2.164 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.4621, allocations: 0.7691 MB / 0.5096 GB, free: 1.395 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.4639, allocations: 1.375 MB / 0.511 GB, free: 15.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003253/0.4671, allocations: 2.316 MB / 0.5132 GB, free: 13.17 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.4672, allocations: 7.938 kB / 0.5133 GB, free: 13.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004318/0.4715, allocations: 2.487 MB / 0.5157 GB, free: 10.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.4715, allocations: 12.12 kB / 0.5157 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/0.4715, allocations: 24 kB / 0.5157 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003665/0.4719, allocations: 118.5 kB / 0.5158 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.4737, allocations: 491.2 kB / 0.5163 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.475, allocations: 1.401 MB / 0.5177 GB, free: 8.477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.4766, allocations: 119.8 kB / 0.5178 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.4767, allocations: 79.98 kB / 0.5179 GB, free: 8.281 MB / 430.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.001871/0.4786, allocations: 0.9929 MB / 0.5188 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004167/0.479, allocations: 210.6 kB / 0.519 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003463/0.4825, allocations: 1.967 MB / 0.521 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.4825, allocations: 12 kB / 0.521 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4825, allocations: 0 / 0.521 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4825, allocations: 7.969 kB / 0.521 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008836/0.4913, allocations: 5.007 MB / 0.5259 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.4913, allocations: 8 kB / 0.5259 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.4927, allocations: 303.6 kB / 0.5262 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003133/0.493, allocations: 98.55 kB / 0.5263 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.788e-05/0.4931, allocations: 32 kB / 0.5263 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.4943, allocations: 1.377 MB / 0.5276 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4943, allocations: 7.938 kB / 0.5276 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004861/0.4992, allocations: 3.091 MB / 0.5307 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.5004, allocations: 463.6 kB / 0.5311 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.5007, allocations: 31.94 kB / 0.5311 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5017, allocations: 79.97 kB / 0.5312 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.5019, allocations: 89.12 kB / 0.5313 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-05/0.502, allocations: 39.98 kB / 0.5313 GB, free: 10.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002166/0.5042, allocations: 1.297 MB / 0.5326 GB, free: 8.812 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5042, allocations: 4 kB / 0.5326 GB, free: 8.809 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002077/0.5062, allocations: 0.539 MB / 0.5331 GB, free: 8.27 MB / 446.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.0004039/0.5066, allocations: 174.9 kB / 0.5333 GB, free: 8.086 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003646/0.5103, allocations: 2.122 MB / 0.5354 GB, free: 5.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5103, allocations: 320 / 0.5354 GB, free: 5.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.5119, allocations: 1.115 MB / 0.5365 GB, free: 4.738 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.5146, allocations: 0.5266 MB / 0.537 GB, free: 4.223 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.5251, allocations: 5.698 MB / 0.5425 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.5274, allocations: 2.221 MB / 0.5447 GB, free: 12.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007622/0.5282, allocations: 171.4 kB / 0.5449 GB, free: 12.03 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5282, allocations: 3.938 kB / 0.5449 GB, free: 12.02 MB / 462.1 MB Notification: Performance of Templates: time 0.3308/0.8589, allocations: 87.07 MB / 0.6299 GB, free: 168.1 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 13.420360348012764]