Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001349/0.001349, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.001463/0.001463, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 64.03 kB / 378.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 53.37 MB / 432.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02125/0.3202, allocations: 15.93 MB / 448.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.3337, allocations: 5.379 MB / 453.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003802/0.3375, allocations: 123.2 kB / 453.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003913/0.3414, allocations: 1.142 MB / 454.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006309/0.3477, allocations: 1.297 MB / 456 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003604/0.3513, allocations: 0.9462 MB / 457 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007031/0.3584, allocations: 3.657 MB / 460.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003733/0.3621, allocations: 1.913 MB / 462.5 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004532/0.3666, allocations: 1.788 MB / 464.3 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005458/0.3721, allocations: 2.152 MB / 466.5 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002367/0.3744, allocations: 480 kB / 466.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.3774, allocations: 0.7029 MB / 467.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00151/0.3789, allocations: 1.168 MB / 468.8 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003065/0.3819, allocations: 2.05 MB / 470.9 MB, free: 144 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.3929, allocations: 6.322 MB / 477.2 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.3929, allocations: 0 / 477.2 MB, free: 9.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3929, allocations: 0 / 477.2 MB, free: 9.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002534/0.3931, allocations: 0 / 477.2 MB, free: 9.797 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.01439/0.4075, allocations: 4.287 MB / 481.5 MB, free: 5.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.4076, allocations: 12.03 kB / 481.5 MB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003507/0.4111, allocations: 0.6349 MB / 482.1 MB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006051/0.4171, allocations: 2.233 MB / 484.3 MB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.4174, allocations: 234.7 kB / 484.6 MB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007182/0.4181, allocations: 316.1 kB / 484.9 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009109/0.4272, allocations: 4.058 MB / 488.9 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.548e-05/0.4273, allocations: 3.953 kB / 488.9 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.4276, allocations: 128 kB / 489.1 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.4278, allocations: 146.2 kB / 489.2 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00826/0.436, allocations: 3.386 MB / 492.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02909/0.4651, allocations: 12.88 MB / 0.4936 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005683/0.4708, allocations: 1.755 MB / 0.4953 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002781/0.4736, allocations: 0.9415 MB / 0.4963 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007705/0.4813, allocations: 2.458 MB / 0.4987 GB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.142e-05/0.4813, allocations: 51.5 kB / 0.4987 GB, free: 7.711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 4.147e-06/0.4813, allocations: 0 / 0.4987 GB, free: 7.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01978/0.5011, allocations: 5.825 MB / 0.5044 GB, free: 1.848 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.288e-05/0.5012, allocations: 68.72 kB / 0.5045 GB, free: 1.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005125/0.5063, allocations: 1.902 MB / 0.5063 GB, free: 15.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/0.5067, allocations: 53.7 kB / 0.5064 GB, free: 15.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00193/0.5086, allocations: 1.556 MB / 0.5079 GB, free: 14.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009377/0.5095, allocations: 0.5074 MB / 0.5084 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008851/0.5104, allocations: 343.4 kB / 0.5087 GB, free: 13.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.5106, allocations: 301.1 kB / 0.509 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.5127, allocations: 0.7691 MB / 0.5098 GB, free: 12.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002758/0.5155, allocations: 1.379 MB / 0.5111 GB, free: 10.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005156/0.5206, allocations: 2.316 MB / 0.5134 GB, free: 8.039 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.902e-05/0.5206, allocations: 11.94 kB / 0.5134 GB, free: 8.027 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006613/0.5272, allocations: 2.482 MB / 0.5158 GB, free: 5.527 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.5273, allocations: 12.69 kB / 0.5158 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.901e-05/0.5273, allocations: 20 kB / 0.5158 GB, free: 5.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/0.5278, allocations: 130.4 kB / 0.516 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.5297, allocations: 479.2 kB / 0.5164 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.5313, allocations: 1.306 MB / 0.5177 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.5331, allocations: 116 kB / 0.5178 GB, free: 3.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.5333, allocations: 83.98 kB / 0.5179 GB, free: 3.277 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.002322/0.5356, allocations: 0.985 MB / 0.5188 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006108/0.5362, allocations: 218.6 kB / 0.519 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004076/0.5403, allocations: 1.973 MB / 0.521 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.5403, allocations: 12 kB / 0.521 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5403, allocations: 4 kB / 0.521 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.5403, allocations: 7.969 kB / 0.521 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.5504, allocations: 4.963 MB / 0.5258 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.5504, allocations: 256 / 0.5258 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/0.5519, allocations: 315.5 kB / 0.5261 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/0.5523, allocations: 98.52 kB / 0.5262 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-05/0.5524, allocations: 24 kB / 0.5263 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.5537, allocations: 1.287 MB / 0.5275 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5537, allocations: 0 / 0.5275 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005725/0.5594, allocations: 3.091 MB / 0.5305 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.5608, allocations: 394.5 kB / 0.5309 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003262/0.5612, allocations: 24 kB / 0.5309 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.5623, allocations: 83.97 kB / 0.531 GB, free: 5.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.5625, allocations: 93.06 kB / 0.5311 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/0.5626, allocations: 40 kB / 0.5311 GB, free: 5.371 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00245/0.565, allocations: 1.294 MB / 0.5324 GB, free: 4.055 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.565, allocations: 0 / 0.5324 GB, free: 4.055 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002392/0.5674, allocations: 0.539 MB / 0.5329 GB, free: 3.516 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.0004976/0.5679, allocations: 174 kB / 0.5331 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003948/0.5718, allocations: 1.971 MB / 0.535 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/0.5719, allocations: 0 / 0.535 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.5738, allocations: 0.9575 MB / 0.536 GB, free: 388 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2164/0.7902, allocations: 0.5251 MB / 0.5365 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/0.7999, allocations: 5.696 MB / 0.542 GB, free: 99.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/0.8017, allocations: 2.266 MB / 0.5443 GB, free: 98.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001495/0.8032, allocations: 0.5152 MB / 0.5448 GB, free: 98.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004059/0.8036, allocations: 155.4 kB / 0.5449 GB, free: 98.51 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.8036, allocations: 3.375 kB / 0.5449 GB, free: 98.51 MB / 446.1 MB Notification: Performance of Templates: time 0.04174/0.8454, allocations: 28.4 MB / 0.5726 GB, free: 75.66 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.8154712449759245]