Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.00126/0.00126, allocations: 114.5 kB / 18.45 MB, free: 4.602 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.001266/0.001266, allocations: 190.7 kB / 21.4 MB, free: 1.664 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.413/1.413, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 51.92 kB / 366.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.0921, allocations: 52.14 MB / 419 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01309/0.1052, allocations: 10.98 MB / 429.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007063/0.1123, allocations: 3.637 MB / 433.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.1139, allocations: 63.75 kB / 433.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.116, allocations: 0.8696 MB / 434.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002526/0.1185, allocations: 0.9009 MB / 435.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009765/0.1195, allocations: 459.3 kB / 435.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003287/0.1228, allocations: 2.935 MB / 438.8 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.1252, allocations: 1.982 MB / 440.8 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.1273, allocations: 1.378 MB / 442.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002721/0.13, allocations: 1.798 MB / 444 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005826/0.1306, allocations: 380 kB / 444.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009771/0.1315, allocations: 475.8 kB / 444.8 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001261/0.1328, allocations: 1.083 MB / 445.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2367/0.3695, allocations: 1.665 MB / 447.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006623/0.3761, allocations: 4.9 MB / 452.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3761, allocations: 0 / 452.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3761, allocations: 0 / 452.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001604/0.3763, allocations: 0 / 452.4 MB, free: 12.73 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007817/0.3841, allocations: 3.471 MB / 455.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.3842, allocations: 9.484 kB / 455.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008811/0.385, allocations: 355.2 kB / 456.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.3882, allocations: 1.832 MB / 458.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.3884, allocations: 197.7 kB / 458.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003802/0.3888, allocations: 247.7 kB / 458.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005838/0.3946, allocations: 3.288 MB / 461.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.571e-05/0.3947, allocations: 6.438 kB / 461.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/0.3949, allocations: 98.12 kB / 461.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.3951, allocations: 124.2 kB / 462 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004728/0.3998, allocations: 2.749 MB / 464.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01601/0.4158, allocations: 10.4 MB / 475.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.4177, allocations: 1.305 MB / 476.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.4189, allocations: 0.7048 MB / 477.2 MB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002799/0.4192, allocations: 207 kB / 477.4 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.4192, allocations: 49.02 kB / 477.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 4.088e-06/0.4192, allocations: 1.922 kB / 477.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.0149/0.4341, allocations: 6.948 MB / 484.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.4342, allocations: 63.75 kB / 484.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002974/0.4372, allocations: 1.794 MB / 486.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.709e-05/0.4373, allocations: 48.58 kB / 486.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001078/0.4383, allocations: 1.298 MB / 487.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/0.4387, allocations: 453.2 kB / 488 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004723/0.4392, allocations: 301.3 kB / 488.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.4394, allocations: 309.1 kB / 488.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.4405, allocations: 0.7712 MB / 489.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.442, allocations: 1.29 MB / 490.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002958/0.445, allocations: 2.219 MB / 492.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.445, allocations: 4 kB / 492.9 MB, free: 8.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004243/0.4492, allocations: 2.479 MB / 495.4 MB, free: 5.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.828e-05/0.4493, allocations: 12 kB / 495.4 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.583e-05/0.4493, allocations: 17.22 kB / 495.4 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006964/0.45, allocations: 239.6 kB / 495.7 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.4515, allocations: 411.8 kB / 496.1 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00335/0.4548, allocations: 3.245 MB / 499.3 MB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4566, allocations: 134.3 kB / 499.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/0.4567, allocations: 75.36 kB / 499.5 MB, free: 1.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001708/0.4584, allocations: 0.8108 MB / 0.4886 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/0.4589, allocations: 194.7 kB / 0.4888 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.4625, allocations: 2.045 MB / 0.4908 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/0.4625, allocations: 12 kB / 0.4908 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4626, allocations: 0 / 0.4908 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.4626, allocations: 7.984 kB / 0.4908 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008635/0.4712, allocations: 4.746 MB / 0.4954 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4712, allocations: 0.5625 kB / 0.4954 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.4723, allocations: 265.2 kB / 0.4957 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005897/0.4729, allocations: 207 kB / 0.4959 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.384e-05/0.473, allocations: 27.98 kB / 0.4959 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.4761, allocations: 3.205 MB / 0.499 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.4761, allocations: 5.188 kB / 0.4991 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005163/0.4813, allocations: 3.153 MB / 0.5021 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.4827, allocations: 431.8 kB / 0.5025 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003464/0.483, allocations: 27.98 kB / 0.5026 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.4841, allocations: 91.88 kB / 0.5027 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.4843, allocations: 88.27 kB / 0.5027 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.959e-05/0.4844, allocations: 32 kB / 0.5028 GB, free: 1.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.4865, allocations: 1.224 MB / 0.504 GB, free: 468 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4865, allocations: 4 kB / 0.504 GB, free: 464 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001794/0.4883, allocations: 484 kB / 0.5044 GB, free: 15.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0004411/0.4887, allocations: 197.5 kB / 0.5046 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00396/0.4927, allocations: 2.267 MB / 0.5068 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4927, allocations: 0 / 0.5068 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.4946, allocations: 1.272 MB / 0.5081 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/0.4971, allocations: 494.1 kB / 0.5086 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.5072, allocations: 5.012 MB / 0.5134 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/0.5093, allocations: 1.974 MB / 0.5154 GB, free: 4.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008201/0.5101, allocations: 151.4 kB / 0.5155 GB, free: 4.535 MB / 414.1 MB Notification: Performance of SimCode: time 1.382e-06/0.5101, allocations: 0 / 0.5155 GB, free: 4.535 MB / 414.1 MB Notification: Performance of Templates: time 0.1025/0.6127, allocations: 83.12 MB / 0.5967 GB, free: 1.477 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.944359847111627]