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.001588/0.001588, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001902/0.001902, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.00162/0.00162, allocations: 51.84 kB / 379.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2808, allocations: 53.36 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02019/0.3009, allocations: 15.94 MB / 448.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.3123, allocations: 5.377 MB / 453.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003336/0.3156, allocations: 123.2 kB / 453.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0036/0.3192, allocations: 1.142 MB / 455 MB, free: 268 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004568/0.3238, allocations: 1.301 MB / 456.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002493/0.3263, allocations: 0.9383 MB / 457.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005237/0.3315, allocations: 3.651 MB / 460.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003078/0.3346, allocations: 1.913 MB / 462.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002729/0.3373, allocations: 1.791 MB / 464.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003312/0.3406, allocations: 2.152 MB / 466.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000703/0.3413, allocations: 476 kB / 467.2 MB, free: 3.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.3428, allocations: 0.7028 MB / 467.9 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.3438, allocations: 1.169 MB / 469.1 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002216/0.346, allocations: 2.046 MB / 471.1 MB, free: 16 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0072/0.3532, allocations: 6.319 MB / 477.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3532, allocations: 0 / 477.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3532, allocations: 0 / 477.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001385/0.3534, allocations: 4 kB / 477.4 MB, free: 9.668 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.01007/0.3635, allocations: 4.287 MB / 481.7 MB, free: 5.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3635, allocations: 12.03 kB / 481.7 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00273/0.3662, allocations: 0.6349 MB / 482.4 MB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004362/0.3706, allocations: 2.233 MB / 484.6 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.3708, allocations: 234.7 kB / 484.8 MB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004707/0.3713, allocations: 320 kB / 485.2 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006841/0.3781, allocations: 4.055 MB / 489.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.137e-05/0.3782, allocations: 11.89 kB / 489.2 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.3784, allocations: 124 kB / 489.3 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.3786, allocations: 150.2 kB / 489.5 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005678/0.3843, allocations: 3.39 MB / 492.9 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01991/0.4042, allocations: 12.87 MB / 0.4939 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003296/0.4075, allocations: 1.752 MB / 0.4956 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.409, allocations: 0.9376 MB / 0.4965 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004752/0.4138, allocations: 2.454 MB / 0.4989 GB, free: 7.645 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/0.4138, allocations: 47.5 kB / 0.499 GB, free: 7.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.284e-06/0.4138, allocations: 4 kB / 0.499 GB, free: 7.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01184/0.4257, allocations: 5.826 MB / 0.5047 GB, free: 1.727 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.4257, allocations: 64.72 kB / 0.5047 GB, free: 1.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002842/0.4286, allocations: 1.906 MB / 0.5066 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.4287, allocations: 49.7 kB / 0.5066 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.4299, allocations: 1.556 MB / 0.5081 GB, free: 14.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004564/0.4303, allocations: 0.5035 MB / 0.5086 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005179/0.4308, allocations: 347.4 kB / 0.509 GB, free: 13.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.431, allocations: 301.1 kB / 0.5093 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.4322, allocations: 0.7691 MB / 0.51 GB, free: 12.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.4339, allocations: 1.379 MB / 0.5114 GB, free: 10.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/0.437, allocations: 2.316 MB / 0.5136 GB, free: 7.922 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.371e-05/0.437, allocations: 11.94 kB / 0.5136 GB, free: 7.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004265/0.4413, allocations: 2.482 MB / 0.5161 GB, free: 5.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.4413, allocations: 12 kB / 0.5161 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.4414, allocations: 24 kB / 0.5161 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003826/0.4417, allocations: 126.8 kB / 0.5162 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/0.4435, allocations: 483.2 kB / 0.5167 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.4446, allocations: 1.306 MB / 0.5179 GB, free: 3.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.4462, allocations: 119.9 kB / 0.5181 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.4463, allocations: 87.98 kB / 0.5181 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.001783/0.4481, allocations: 0.985 MB / 0.5191 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004004/0.4485, allocations: 214.6 kB / 0.5193 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.4519, allocations: 1.965 MB / 0.5212 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.4519, allocations: 20 kB / 0.5212 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4519, allocations: 0 / 0.5212 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.4519, allocations: 11.91 kB / 0.5213 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008345/0.4603, allocations: 4.959 MB / 0.5261 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.4603, allocations: 0 / 0.5261 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.4616, allocations: 319.8 kB / 0.5264 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002989/0.4619, allocations: 94.52 kB / 0.5265 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-05/0.462, allocations: 28 kB / 0.5265 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.463, allocations: 1.279 MB / 0.5278 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.463, allocations: 7.938 kB / 0.5278 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004704/0.4677, allocations: 3.091 MB / 0.5308 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.4689, allocations: 390.5 kB / 0.5312 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/0.4692, allocations: 24 kB / 0.5312 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009133/0.4701, allocations: 79.91 kB / 0.5313 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.4703, allocations: 109.1 kB / 0.5314 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.413e-05/0.4703, allocations: 32 kB / 0.5314 GB, free: 5.246 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00205/0.4724, allocations: 1.297 MB / 0.5327 GB, free: 3.926 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4724, allocations: 0 / 0.5327 GB, free: 3.926 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001734/0.4741, allocations: 0.539 MB / 0.5332 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.0003355/0.4745, allocations: 168.6 kB / 0.5334 GB, free: 3.215 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.4779, allocations: 1.971 MB / 0.5353 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.478, allocations: 0 / 0.5353 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.4795, allocations: 0.9623 MB / 0.5362 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2373/0.7168, allocations: 0.5127 MB / 0.5367 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009834/0.7266, allocations: 5.734 MB / 0.5423 GB, free: 99.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/0.7287, allocations: 2.225 MB / 0.5445 GB, free: 98.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007058/0.7294, allocations: 172.8 kB / 0.5447 GB, free: 98.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7294, allocations: 0 / 0.5447 GB, free: 98.52 MB / 446.1 MB Notification: Performance of Templates: time 0.06941/0.7988, allocations: 87.08 MB / 0.6297 GB, free: 17.09 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/jenkins1/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/jenkins1/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: 12.291091004852206]