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.00806/0.00806, allocations: 103.1 kB / 21.97 MB, free: 5.207 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.002106/0.002106, allocations: 220.6 kB / 25.29 MB, free: 3.215 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.512/1.512, allocations: 230.6 MB / 259 MB, free: 8.051 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.001998/0.001998, allocations: 68.06 kB / 379.8 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3313, allocations: 53.36 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02005/0.3513, allocations: 15.94 MB / 449.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.3633, allocations: 5.377 MB / 454.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003812/0.3671, allocations: 123.2 kB / 454.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004096/0.3712, allocations: 1.146 MB / 455.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00594/0.3771, allocations: 1.293 MB / 457.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003038/0.3801, allocations: 0.9494 MB / 458 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006413/0.3866, allocations: 3.643 MB / 461.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004437/0.391, allocations: 1.917 MB / 463.6 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003412/0.3944, allocations: 1.784 MB / 465.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004171/0.3986, allocations: 2.152 MB / 467.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001513/0.4001, allocations: 480 kB / 468 MB, free: 4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002868/0.403, allocations: 0.7067 MB / 468.7 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.4051, allocations: 1.165 MB / 469.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004655/0.4098, allocations: 2.05 MB / 471.9 MB, free: 68 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.4205, allocations: 6.32 MB / 478.2 MB, free: 9.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.4205, allocations: 0 / 478.2 MB, free: 9.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.4205, allocations: 0 / 478.2 MB, free: 9.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002662/0.4208, allocations: 0 / 478.2 MB, free: 9.727 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.01478/0.4356, allocations: 4.291 MB / 482.5 MB, free: 5.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.4356, allocations: 8.031 kB / 482.5 MB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003336/0.439, allocations: 0.6388 MB / 483.2 MB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0057/0.4447, allocations: 2.226 MB / 485.4 MB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.4449, allocations: 238.7 kB / 485.6 MB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008042/0.4457, allocations: 324 kB / 485.9 MB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008/0.4537, allocations: 4.047 MB / 490 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.49e-05/0.4538, allocations: 11.94 kB / 490 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002859/0.4541, allocations: 132 kB / 490.1 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.4542, allocations: 142.2 kB / 490.3 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00638/0.4606, allocations: 3.393 MB / 493.7 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02224/0.4829, allocations: 12.86 MB / 0.4946 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00348/0.4863, allocations: 1.77 MB / 0.4964 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.488, allocations: 0.9259 MB / 0.4973 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004991/0.493, allocations: 2.47 MB / 0.4997 GB, free: 7.688 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/0.4931, allocations: 51.5 kB / 0.4997 GB, free: 7.629 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.257e-06/0.4931, allocations: 0 / 0.4997 GB, free: 7.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01228/0.5053, allocations: 5.81 MB / 0.5054 GB, free: 1.785 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.5054, allocations: 68.72 kB / 0.5055 GB, free: 1.707 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003186/0.5086, allocations: 1.91 MB / 0.5073 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001576/0.5087, allocations: 49.7 kB / 0.5074 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.51, allocations: 1.556 MB / 0.5089 GB, free: 14.13 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005206/0.5106, allocations: 0.5074 MB / 0.5094 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005326/0.5111, allocations: 343.4 kB / 0.5097 GB, free: 13.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5112, allocations: 301.1 kB / 0.51 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.5126, allocations: 0.7691 MB / 0.5108 GB, free: 12.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/0.5143, allocations: 1.379 MB / 0.5121 GB, free: 10.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0033/0.5177, allocations: 2.316 MB / 0.5144 GB, free: 7.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/0.5177, allocations: 11.88 kB / 0.5144 GB, free: 7.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00452/0.5222, allocations: 2.479 MB / 0.5168 GB, free: 5.465 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.5222, allocations: 16 kB / 0.5168 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/0.5223, allocations: 20 kB / 0.5168 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003775/0.5226, allocations: 126.4 kB / 0.517 GB, free: 5.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.5244, allocations: 479.3 kB / 0.5174 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.5256, allocations: 1.307 MB / 0.5187 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.5273, allocations: 115.8 kB / 0.5188 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/0.5274, allocations: 87.97 kB / 0.5189 GB, free: 3.211 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.001834/0.5292, allocations: 0.9929 MB / 0.5199 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000478/0.5297, allocations: 210.6 kB / 0.5201 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.5333, allocations: 1.969 MB / 0.522 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.359e-05/0.5333, allocations: 16.05 kB / 0.522 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5333, allocations: 0 / 0.522 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.5333, allocations: 7.922 kB / 0.522 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008647/0.542, allocations: 4.975 MB / 0.5269 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.542, allocations: 4 kB / 0.5269 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/0.5433, allocations: 303.6 kB / 0.5272 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003113/0.5436, allocations: 102.7 kB / 0.5273 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/0.5437, allocations: 31.94 kB / 0.5273 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.5448, allocations: 1.275 MB / 0.5285 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5448, allocations: 4 kB / 0.5285 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.5498, allocations: 3.088 MB / 0.5316 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.551, allocations: 390.5 kB / 0.5319 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.5514, allocations: 36 kB / 0.532 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.5525, allocations: 75.91 kB / 0.532 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.5527, allocations: 97.06 kB / 0.5321 GB, free: 5.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.744e-05/0.5528, allocations: 36 kB / 0.5322 GB, free: 5.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.5552, allocations: 1.297 MB / 0.5334 GB, free: 3.984 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5552, allocations: 4 kB / 0.5334 GB, free: 3.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002455/0.5577, allocations: 0.5351 MB / 0.534 GB, free: 3.445 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.0004477/0.5581, allocations: 178.9 kB / 0.5341 GB, free: 3.262 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.562, allocations: 1.968 MB / 0.5361 GB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.562, allocations: 4.25 kB / 0.5361 GB, free: 1.273 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.5638, allocations: 0.9487 MB / 0.537 GB, free: 312 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.227/0.7908, allocations: 0.5139 MB / 0.5375 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.802, allocations: 5.738 MB / 0.5431 GB, free: 99.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/0.8042, allocations: 2.223 MB / 0.5453 GB, free: 98.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007906/0.805, allocations: 172.1 kB / 0.5454 GB, free: 98.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.904e-06/0.805, allocations: 0 / 0.5454 GB, free: 98.49 MB / 446.1 MB Notification: Performance of Templates: time 0.07569/0.8807, allocations: 87.09 MB / 0.6305 GB, free: 17.18 MB / 446.1 MB " [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/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-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.251325140940025]