Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001888/0.001888, allocations: 107.1 kB / 20.44 MB, free: 1.195 MB / 14.72 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.002425/0.002425, allocations: 206 kB / 23.73 MB, free: 4.402 MB / 14.72 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.555/1.555, allocations: 230.6 MB / 257.5 MB, free: 7.797 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+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.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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002258/0.002258, allocations: 51.92 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2546, allocations: 53.38 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01839/0.273, allocations: 13.78 MB / 445.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.2837, allocations: 5.066 MB / 450.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002563/0.2863, allocations: 127.2 kB / 450.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003681/0.29, allocations: 1.072 MB / 451.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004815/0.2948, allocations: 1.274 MB / 452.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.2976, allocations: 0.904 MB / 453.8 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005691/0.3033, allocations: 3.645 MB / 457.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003617/0.3069, allocations: 1.839 MB / 459.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003162/0.3101, allocations: 1.795 MB / 461.1 MB, free: 9.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.3138, allocations: 2.008 MB / 463.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.3149, allocations: 476 kB / 463.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/0.3169, allocations: 0.6833 MB / 464.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.3184, allocations: 1.157 MB / 465.4 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002468/0.3209, allocations: 1.622 MB / 467 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007309/0.3282, allocations: 6.344 MB / 473.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3282, allocations: 3.938 kB / 473.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3282, allocations: 4 kB / 473.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001177/0.3283, allocations: 4 kB / 473.4 MB, free: 12.69 MB / 382.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.009992/0.3383, allocations: 4.279 MB / 477.7 MB, free: 8.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3383, allocations: 8.031 kB / 477.7 MB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002857/0.3412, allocations: 0.6271 MB / 478.3 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004631/0.3458, allocations: 2.214 MB / 480.5 MB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.346, allocations: 234.7 kB / 480.8 MB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005137/0.3465, allocations: 316.1 kB / 481.1 MB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007629/0.3542, allocations: 4.126 MB / 485.2 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.3542, allocations: 11.94 kB / 485.2 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.3545, allocations: 128 kB / 485.3 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.3547, allocations: 150.2 kB / 485.5 MB, free: 436 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006184/0.3609, allocations: 3.378 MB / 488.9 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01973/0.3806, allocations: 11.31 MB / 0.4884 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003555/0.3842, allocations: 1.753 MB / 0.4902 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.3859, allocations: 0.9337 MB / 0.4911 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004561/0.3904, allocations: 2.148 MB / 0.4932 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.3905, allocations: 47.56 kB / 0.4932 GB, free: 12.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.116e-06/0.3905, allocations: 0 / 0.4932 GB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01221/0.4027, allocations: 5.81 MB / 0.4989 GB, free: 6.617 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.4027, allocations: 64.72 kB / 0.4989 GB, free: 6.543 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.4054, allocations: 1.756 MB / 0.5007 GB, free: 4.785 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.4055, allocations: 45.7 kB / 0.5007 GB, free: 4.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4067, allocations: 1.575 MB / 0.5022 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004504/0.4072, allocations: 0.4996 MB / 0.5027 GB, free: 2.641 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005351/0.4077, allocations: 339.4 kB / 0.5031 GB, free: 2.301 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.4078, allocations: 305.1 kB / 0.5033 GB, free: 2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.4092, allocations: 0.7691 MB / 0.5041 GB, free: 1.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/0.411, allocations: 1.404 MB / 0.5055 GB, free: 15.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003384/0.4144, allocations: 2.32 MB / 0.5077 GB, free: 12.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/0.4144, allocations: 4 kB / 0.5077 GB, free: 12.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004376/0.4188, allocations: 2.482 MB / 0.5102 GB, free: 10.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.4188, allocations: 12 kB / 0.5102 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.194e-05/0.4189, allocations: 20 kB / 0.5102 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003745/0.4193, allocations: 119 kB / 0.5103 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.4211, allocations: 483.2 kB / 0.5108 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.4223, allocations: 1.283 MB / 0.512 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.4237, allocations: 116 kB / 0.5121 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.4238, allocations: 87.98 kB / 0.5122 GB, free: 8.242 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.001712/0.4256, allocations: 0.985 MB / 0.5132 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/0.426, allocations: 202.7 kB / 0.5134 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003631/0.4296, allocations: 1.941 MB / 0.5153 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.4296, allocations: 16 kB / 0.5153 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.4296, allocations: 7.938 kB / 0.5153 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.4296, allocations: 7.969 kB / 0.5153 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008135/0.4378, allocations: 4.235 MB / 0.5194 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.4378, allocations: 4.062 kB / 0.5194 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.4392, allocations: 311.5 kB / 0.5197 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/0.4395, allocations: 98.45 kB / 0.5198 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.275e-05/0.4396, allocations: 27.98 kB / 0.5198 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.4406, allocations: 1.248 MB / 0.5211 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.4407, allocations: 4 kB / 0.5211 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00502/0.4457, allocations: 3.083 MB / 0.5241 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.4468, allocations: 370.6 kB / 0.5244 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003784/0.4472, allocations: 28.16 kB / 0.5245 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.4483, allocations: 83.91 kB / 0.5245 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.4485, allocations: 93.12 kB / 0.5246 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.38e-05/0.4486, allocations: 40 kB / 0.5247 GB, free: 11.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002176/0.4508, allocations: 1.156 MB / 0.5258 GB, free: 10.06 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4508, allocations: 3.938 kB / 0.5258 GB, free: 10.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002186/0.4529, allocations: 0.5351 MB / 0.5263 GB, free: 9.52 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.0004487/0.4534, allocations: 163 kB / 0.5265 GB, free: 9.352 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.4572, allocations: 1.978 MB / 0.5284 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4573, allocations: 0 / 0.5284 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.459, allocations: 0.9509 MB / 0.5293 GB, free: 6.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.4615, allocations: 475.2 kB / 0.5298 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.4732, allocations: 5.677 MB / 0.5353 GB, free: 196 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1894/0.6627, allocations: 1.716 MB / 0.537 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00165/0.6643, allocations: 0.4937 MB / 0.5375 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.6648, allocations: 146.4 kB / 0.5376 GB, free: 100.8 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6648, allocations: 1.438 kB / 0.5376 GB, free: 100.8 MB / 446.1 MB Notification: Performance of Templates: time 0.03927/0.704, allocations: 28.52 MB / 0.5655 GB, free: 80.32 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.794322572648525]