Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001095/0.001095, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.0009983/0.0009983, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 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 0.8884/0.8884, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 4 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.422e-05, allocations: 4.844 kB / 273.5 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1382/0.1383, allocations: 37.57 MB / 311 MB, free: 7.523 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0197/0.158, allocations: 10.55 MB / 321.6 MB, free: 176 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006312/0.1643, allocations: 368.6 kB / 321.9 MB, free: 48 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009359/0.1736, allocations: 8.834 MB / 330.8 MB, free: 8.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006956/0.1806, allocations: 3.571 MB / 334.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003914/0.1845, allocations: 2.368 MB / 336.7 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.1959, allocations: 13.51 MB / 350.2 MB, free: 4.832 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02162/0.2176, allocations: 17.18 MB / 367.4 MB, free: 3.484 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01046/0.228, allocations: 10.67 MB / 378.1 MB, free: 8.801 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006542/0.2346, allocations: 7.454 MB / 385.5 MB, free: 1.332 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002114/0.2367, allocations: 1.938 MB / 387.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.2394, allocations: 2.347 MB / 389.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002021/0.2414, allocations: 4.071 MB / 393.9 MB, free: 8.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004/0.2454, allocations: 5.123 MB / 399 MB, free: 3.832 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01023/0.2556, allocations: 12.56 MB / 411.6 MB, free: 7.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2556, allocations: 4 kB / 411.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2556, allocations: 0 / 411.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001862/0.2558, allocations: 4 kB / 411.6 MB, free: 7.23 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.0192/0.275, allocations: 15.48 MB / 427 MB, free: 7.617 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.275, allocations: 12.03 kB / 427.1 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/0.2923, allocations: 6.199 MB / 433.3 MB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2457/0.5381, allocations: 7.248 MB / 440.5 MB, free: 75.51 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008884/0.539, allocations: 0.9052 MB / 441.4 MB, free: 75.48 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003471/0.5424, allocations: 1.2 MB / 442.6 MB, free: 75.48 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02218/0.5646, allocations: 9.434 MB / 452 MB, free: 74.54 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003815/0.565, allocations: 19.14 kB / 452.1 MB, free: 74.54 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001859/0.5668, allocations: 0.4967 MB / 452.6 MB, free: 74.54 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005117/0.5674, allocations: 0.6353 MB / 453.2 MB, free: 74.51 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01132/0.5787, allocations: 4.265 MB / 457.5 MB, free: 74.21 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05941/0.6381, allocations: 46.92 MB / 0.4926 GB, free: 35.61 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007102/0.6452, allocations: 7.828 MB / 0.5002 GB, free: 29.49 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.6471, allocations: 1.468 MB / 0.5016 GB, free: 28.05 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007747/0.6548, allocations: 5.389 MB / 0.5069 GB, free: 22.99 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/0.6549, allocations: 80.14 kB / 0.507 GB, free: 22.9 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 6.341e-06/0.6549, allocations: 0 / 0.507 GB, free: 22.9 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01511/0.67, allocations: 8.787 MB / 0.5156 GB, free: 14.55 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.67, allocations: 90.47 kB / 0.5156 GB, free: 14.45 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003885/0.6739, allocations: 4.341 MB / 0.5199 GB, free: 10.76 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002968/0.6742, allocations: 89.7 kB / 0.52 GB, free: 10.66 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002167/0.6764, allocations: 5.941 MB / 0.5258 GB, free: 4.891 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009623/0.6773, allocations: 1.453 MB / 0.5272 GB, free: 3.516 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001364/0.6787, allocations: 1.493 MB / 0.5286 GB, free: 2.145 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.949e-05/0.6787, allocations: 482.4 kB / 0.5291 GB, free: 1.672 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.6798, allocations: 0.7352 MB / 0.5298 GB, free: 0.9336 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003377/0.6832, allocations: 5.245 MB / 0.5349 GB, free: 9.969 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006179/0.6893, allocations: 6.71 MB / 0.5415 GB, free: 1.883 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/0.6895, allocations: 28 kB / 0.5415 GB, free: 1.855 MB / 394.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.007965/0.6974, allocations: 5.608 MB / 0.547 GB, free: 12.86 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/0.6975, allocations: 48 kB / 0.5471 GB, free: 12.81 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/0.6976, allocations: 100 kB / 0.5471 GB, free: 12.71 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001788/0.6994, allocations: 0.8577 MB / 0.548 GB, free: 11.84 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003368/0.7028, allocations: 1.462 MB / 0.5494 GB, free: 10.5 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006823/0.7096, allocations: 8.197 MB / 0.5574 GB, free: 2.109 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004012/0.7136, allocations: 287.8 kB / 0.5577 GB, free: 1.828 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/0.7146, allocations: 302.5 kB / 0.558 GB, free: 1.535 MB / 410.8 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.003532/0.7182, allocations: 0.6226 MB / 0.5586 GB, free: 1.016 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001386/0.7195, allocations: 0.6289 MB / 0.5592 GB, free: 396 kB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005139/0.7247, allocations: 3.273 MB / 0.5624 GB, free: 13.11 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.7247, allocations: 40 kB / 0.5624 GB, free: 13.07 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.7247, allocations: 12 kB / 0.5624 GB, free: 13.06 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/0.7247, allocations: 19.92 kB / 0.5625 GB, free: 13.04 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.7391, allocations: 8.664 MB / 0.5709 GB, free: 5.059 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.7392, allocations: 7.938 kB / 0.5709 GB, free: 5.051 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.7408, allocations: 0.6495 MB / 0.5716 GB, free: 4.434 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.7424, allocations: 0.7011 MB / 0.5723 GB, free: 3.719 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/0.7426, allocations: 83.97 kB / 0.5723 GB, free: 3.637 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005799/0.7484, allocations: 7.764 MB / 0.5799 GB, free: 11.66 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.7484, allocations: 4 kB / 0.5799 GB, free: 11.66 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/0.7549, allocations: 4.042 MB / 0.5839 GB, free: 7.59 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/0.757, allocations: 0.8361 MB / 0.5847 GB, free: 6.75 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005501/0.7575, allocations: 72 kB / 0.5848 GB, free: 6.68 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.7586, allocations: 112 kB / 0.5849 GB, free: 6.57 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004229/0.759, allocations: 281.8 kB / 0.5851 GB, free: 6.297 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.7592, allocations: 87.95 kB / 0.5852 GB, free: 6.211 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002273/0.7615, allocations: 1.894 MB / 0.5871 GB, free: 4.512 MB / 442.8 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7615, allocations: 4 kB / 0.5871 GB, free: 4.508 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006365/0.7678, allocations: 1.859 MB / 0.5889 GB, free: 2.648 MB / 442.8 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.0008125/0.7686, allocations: 265.5 kB / 0.5891 GB, free: 2.414 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.1467/0.9154, allocations: 4.255 MB / 0.5933 GB, free: 124.5 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.9154, allocations: 5.219 kB / 0.5933 GB, free: 124.5 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004192/0.9196, allocations: 2.125 MB / 0.5954 GB, free: 123.9 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005864/0.9254, allocations: 1.194 MB / 0.5965 GB, free: 123.8 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02968/0.9551, allocations: 16.98 MB / 0.6131 GB, free: 117.4 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005157/0.9603, allocations: 3.077 MB / 0.6161 GB, free: 117 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.003263/0.9635, allocations: 0.8146 MB / 0.6169 GB, free: 116.8 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002231/0.9658, allocations: 1.253 MB / 0.6181 GB, free: 116.8 MB / 442.8 MB Notification: Performance of SimCode: time 1.633e-06/0.9658, allocations: 0 / 0.6181 GB, free: 116.8 MB / 442.8 MB Notification: Performance of Templates: time 0.0987/1.064, allocations: 70.22 MB / 0.6867 GB, free: 60.12 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 5.240922330878675]