Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.0008011/0.0008011, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001024/0.001826, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0007482/0.0007482, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009607/0.001709, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9231/0.9231, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08396/1.007, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 245 MB, free: 13.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.37e-05/1.513e-05, allocations: 2.312 kB / 245 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1469/0.1469, allocations: 37.92 MB / 283 MB, free: 2.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.1685, allocations: 11.19 MB / 294.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00577/0.1743, allocations: 374.7 kB / 294.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01005/0.1843, allocations: 9.047 MB / 303.6 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008099/0.1924, allocations: 3.563 MB / 307.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.1964, allocations: 2.378 MB / 309.5 MB, free: 6.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.2069, allocations: 13.59 MB / 323.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01907/0.226, allocations: 17.16 MB / 340.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01183/0.2378, allocations: 11.08 MB / 351.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008143/0.2459, allocations: 7.525 MB / 358.9 MB, free: 7.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00294/0.2489, allocations: 1.941 MB / 360.8 MB, free: 5.738 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003434/0.2523, allocations: 2.354 MB / 363.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001995/0.2543, allocations: 3.254 MB / 366.4 MB, free: 128 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004336/0.2587, allocations: 4.278 MB / 370.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009638/0.2683, allocations: 11.89 MB / 382.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.2683, allocations: 3.984 kB / 382.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2683, allocations: 0 / 382.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001314/0.2684, allocations: 0 / 382.6 MB, free: 15.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.01778/0.2862, allocations: 17.11 MB / 399.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.2862, allocations: 8.625 kB / 399.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01524/0.3015, allocations: 6.341 MB / 406.1 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006334/0.3078, allocations: 4.407 MB / 410.5 MB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000421/0.3082, allocations: 0.9109 MB / 411.4 MB, free: 2.891 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.3096, allocations: 1.199 MB / 412.6 MB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.3198, allocations: 9.653 MB / 422.2 MB, free: 7.891 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001693/0.32, allocations: 19.88 kB / 422.2 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007306/0.3207, allocations: 0.4922 MB / 422.7 MB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003649/0.3211, allocations: 0.6382 MB / 423.4 MB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006316/0.3274, allocations: 4.676 MB / 428.1 MB, free: 2.035 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1769/0.5043, allocations: 36.81 MB / 464.9 MB, free: 78.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006367/0.5107, allocations: 6.138 MB / 471 MB, free: 76.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.512, allocations: 1.297 MB / 472.3 MB, free: 76.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005997/0.518, allocations: 4.213 MB / 476.5 MB, free: 74.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.518, allocations: 69.97 kB / 476.6 MB, free: 74.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 4.899e-06/0.518, allocations: 0 / 476.6 MB, free: 74.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=389): time 0.01332/0.5313, allocations: 8.334 MB / 484.9 MB, free: 68.92 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.5314, allocations: 90.47 kB / 485 MB, free: 68.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/0.5337, allocations: 3.337 MB / 488.3 MB, free: 66.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/0.5339, allocations: 89.7 kB / 488.4 MB, free: 66.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.5351, allocations: 5.109 MB / 493.5 MB, free: 61.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00059/0.5357, allocations: 1.406 MB / 494.9 MB, free: 59.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/0.5368, allocations: 1.237 MB / 496.2 MB, free: 58.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.244e-05/0.5368, allocations: 305.1 kB / 496.5 MB, free: 58.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009846/0.5378, allocations: 0.8659 MB / 497.3 MB, free: 57.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.5394, allocations: 3.691 MB / 0.4893 GB, free: 52.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003157/0.5425, allocations: 5.224 MB / 0.4944 GB, free: 46.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.15e-05/0.5426, allocations: 28 kB / 0.4944 GB, free: 46.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.00491/0.5475, allocations: 4.526 MB / 0.4988 GB, free: 42.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.5475, allocations: 48 kB / 0.4989 GB, free: 42.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-05/0.5476, allocations: 101.3 kB / 0.499 GB, free: 42.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.5489, allocations: 0.8003 MB / 0.4998 GB, free: 41.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.5517, allocations: 1.669 MB / 0.5014 GB, free: 40.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.5554, allocations: 6.042 MB / 0.5073 GB, free: 33.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/0.5574, allocations: 279.8 kB / 0.5076 GB, free: 33.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002682/0.5577, allocations: 292 kB / 0.5078 GB, free: 33.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001963/0.5597, allocations: 0.5824 MB / 0.5084 GB, free: 32.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004759/0.5601, allocations: 427.5 kB / 0.5088 GB, free: 32.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002957/0.5631, allocations: 2.699 MB / 0.5114 GB, free: 29.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.5631, allocations: 40 kB / 0.5115 GB, free: 29.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.5631, allocations: 8 kB / 0.5115 GB, free: 29.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.5631, allocations: 23.92 kB / 0.5115 GB, free: 29.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008001/0.5711, allocations: 6.796 MB / 0.5182 GB, free: 23.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.5711, allocations: 4 kB / 0.5182 GB, free: 23.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.5728, allocations: 0.7646 MB / 0.5189 GB, free: 22.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007835/0.5736, allocations: 0.5687 MB / 0.5195 GB, free: 22.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.5747, allocations: 0.6688 MB / 0.5201 GB, free: 21.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.5748, allocations: 83.97 kB / 0.5202 GB, free: 21.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003084/0.5779, allocations: 5.649 MB / 0.5257 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5779, allocations: 6.812 kB / 0.5257 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.5813, allocations: 3.269 MB / 0.5289 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/0.5816, allocations: 72 kB / 0.529 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008421/0.5825, allocations: 104 kB / 0.5291 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.5827, allocations: 283.5 kB / 0.5293 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.5829, allocations: 79.97 kB / 0.5294 GB, free: 11.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00107/0.5839, allocations: 1.543 MB / 0.5309 GB, free: 10.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5839, allocations: 0 / 0.5309 GB, free: 10.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003674/0.5876, allocations: 1.867 MB / 0.5327 GB, free: 8.746 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0003727/0.588, allocations: 253.8 kB / 0.533 GB, free: 8.527 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003267/0.5913, allocations: 3.64 MB / 0.5365 GB, free: 5.227 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001521/0.5914, allocations: 123.7 kB / 0.5367 GB, free: 5.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.5929, allocations: 1.779 MB / 0.5384 GB, free: 3.383 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.5953, allocations: 1.566 MB / 0.5399 GB, free: 1.867 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06216/0.6574, allocations: 17.36 MB / 0.5569 GB, free: 440 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002211/0.6596, allocations: 2.265 MB / 0.5591 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002491/0.6621, allocations: 0.812 MB / 0.5599 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/0.6643, allocations: 1.131 MB / 0.561 GB, free: 12.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6643, allocations: 0 / 0.561 GB, free: 12.18 MB / 426.7 MB Notification: Performance of Templates: time 0.2179/0.8822, allocations: 73.9 MB / 0.6332 GB, free: 82.3 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.916194757446647]