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.001661/0.001661, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002187/0.002187, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001576/0.001576, allocations: 43.92 kB / 378.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2377, allocations: 53.36 MB / 431.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01948/0.2572, allocations: 15.93 MB / 447.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.2677, allocations: 5.373 MB / 453 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002899/0.2706, allocations: 127.2 kB / 453.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003091/0.2737, allocations: 1.142 MB / 454.2 MB, free: 264 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003948/0.2776, allocations: 1.301 MB / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.2798, allocations: 0.9411 MB / 456.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004467/0.2842, allocations: 3.662 MB / 460.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002756/0.287, allocations: 1.917 MB / 462 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002602/0.2896, allocations: 1.784 MB / 463.8 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003322/0.2929, allocations: 2.152 MB / 466 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000723/0.2936, allocations: 480 kB / 466.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.295, allocations: 0.7067 MB / 467.2 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.2961, allocations: 1.165 MB / 468.3 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002292/0.2984, allocations: 2.05 MB / 470.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007233/0.3057, allocations: 6.32 MB / 476.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3057, allocations: 0 / 476.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3057, allocations: 3.938 kB / 476.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001004/0.3058, allocations: 4 kB / 476.7 MB, free: 9.648 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.00999/0.3158, allocations: 4.283 MB / 481 MB, free: 5.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3158, allocations: 8.031 kB / 481 MB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002843/0.3187, allocations: 0.6388 MB / 481.6 MB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004491/0.3231, allocations: 2.226 MB / 483.9 MB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.3233, allocations: 238.7 kB / 484.1 MB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004685/0.3238, allocations: 320.1 kB / 484.4 MB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0068/0.3306, allocations: 4.047 MB / 488.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.178e-05/0.3307, allocations: 11.89 kB / 488.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002966/0.331, allocations: 132 kB / 488.6 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001556/0.3311, allocations: 142.2 kB / 488.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005824/0.337, allocations: 3.39 MB / 492.1 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01972/0.3567, allocations: 12.87 MB / 0.4931 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003454/0.3601, allocations: 1.763 MB / 0.4949 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.3617, allocations: 0.9298 MB / 0.4958 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004459/0.3662, allocations: 2.458 MB / 0.4982 GB, free: 7.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.3662, allocations: 51.5 kB / 0.4982 GB, free: 7.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.314e-06/0.3662, allocations: 0 / 0.4982 GB, free: 7.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01149/0.3777, allocations: 5.814 MB / 0.5039 GB, free: 1.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.3778, allocations: 68.72 kB / 0.504 GB, free: 1.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.3805, allocations: 1.91 MB / 0.5058 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-05/0.3806, allocations: 49.7 kB / 0.5059 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.3818, allocations: 1.556 MB / 0.5074 GB, free: 14.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004396/0.3823, allocations: 0.5074 MB / 0.5079 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000533/0.3828, allocations: 339.4 kB / 0.5082 GB, free: 13.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.383, allocations: 301.1 kB / 0.5085 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.3842, allocations: 0.773 MB / 0.5093 GB, free: 12.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.386, allocations: 1.379 MB / 0.5106 GB, free: 10.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003255/0.3893, allocations: 2.316 MB / 0.5129 GB, free: 7.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.3893, allocations: 7.938 kB / 0.5129 GB, free: 7.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004218/0.3935, allocations: 2.479 MB / 0.5153 GB, free: 5.414 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.3936, allocations: 24.12 kB / 0.5153 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.596e-05/0.3936, allocations: 20 kB / 0.5153 GB, free: 5.371 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003958/0.394, allocations: 122.5 kB / 0.5155 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/0.3958, allocations: 487.2 kB / 0.5159 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.397, allocations: 1.306 MB / 0.5172 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.3983, allocations: 119.8 kB / 0.5173 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.3984, allocations: 83.98 kB / 0.5174 GB, free: 3.148 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.001685/0.4001, allocations: 0.989 MB / 0.5184 GB, free: 2.148 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.4005, allocations: 214.6 kB / 0.5186 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.4039, allocations: 1.965 MB / 0.5205 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.404, allocations: 16 kB / 0.5205 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.404, allocations: 0 / 0.5205 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.404, allocations: 7.969 kB / 0.5205 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008209/0.4122, allocations: 4.971 MB / 0.5254 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.4122, allocations: 4 kB / 0.5254 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.4136, allocations: 303.6 kB / 0.5257 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002941/0.4139, allocations: 98.64 kB / 0.5257 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.21e-05/0.414, allocations: 28 kB / 0.5258 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.415, allocations: 1.283 MB / 0.527 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.415, allocations: 8 kB / 0.527 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/0.4198, allocations: 3.087 MB / 0.5301 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009899/0.4208, allocations: 390.5 kB / 0.5304 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.4211, allocations: 32.06 kB / 0.5305 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009669/0.4221, allocations: 75.91 kB / 0.5305 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.4222, allocations: 101 kB / 0.5306 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.849e-05/0.4223, allocations: 36 kB / 0.5307 GB, free: 5.246 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.4243, allocations: 1.297 MB / 0.5319 GB, free: 3.926 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4243, allocations: 0 / 0.5319 GB, free: 3.926 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001623/0.426, allocations: 0.539 MB / 0.5325 GB, free: 3.387 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.0003089/0.4263, allocations: 172.5 kB / 0.5326 GB, free: 3.211 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.4296, allocations: 1.968 MB / 0.5345 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4296, allocations: 448 / 0.5345 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001588/0.4312, allocations: 0.9603 MB / 0.5355 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1795/0.6107, allocations: 0.5204 MB / 0.536 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009033/0.6198, allocations: 5.691 MB / 0.5415 GB, free: 99.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001821/0.6216, allocations: 2.273 MB / 0.5438 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.6231, allocations: 0.5128 MB / 0.5443 GB, free: 98.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.6235, allocations: 155 kB / 0.5444 GB, free: 98.38 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6235, allocations: 3.938 kB / 0.5444 GB, free: 98.38 MB / 446.1 MB Notification: Performance of Templates: time 0.04009/0.6636, allocations: 28.42 MB / 0.5722 GB, free: 75.46 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.773806601995602]