Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001509/0.001509, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001293/0.001293, allocations: 168.3 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8919/0.8919, allocations: 158.6 MB / 187.2 MB, free: 2.555 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 4 kB / 251.1 MB, free: 3.539 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.412e-05, allocations: 2.312 kB / 251.1 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02947/0.02949, allocations: 39.25 MB / 290.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.04878, allocations: 10.51 MB / 300.9 MB, free: 1.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007249/0.05603, allocations: 322.1 kB / 301.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1219/0.1779, allocations: 9.143 MB / 310.3 MB, free: 16.65 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00963/0.1875, allocations: 3.806 MB / 314.1 MB, free: 16.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004922/0.1924, allocations: 2.417 MB / 316.5 MB, free: 16.12 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.2061, allocations: 13.96 MB / 330.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0222/0.2283, allocations: 17.3 MB / 347.8 MB, free: 16 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02583/0.2541, allocations: 10.96 MB / 358.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01551/0.2696, allocations: 7.753 MB / 366.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005237/0.2749, allocations: 1.977 MB / 368.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00767/0.2825, allocations: 2.372 MB / 370.9 MB, free: 9.828 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00602/0.2886, allocations: 4.275 MB / 375.1 MB, free: 5.816 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0116/0.3002, allocations: 5.291 MB / 380.4 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01886/0.319, allocations: 12.99 MB / 393.4 MB, free: 4.527 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.319, allocations: 0 / 393.4 MB, free: 4.527 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.319, allocations: 3.938 kB / 393.4 MB, free: 4.523 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006083/0.3196, allocations: 4 kB / 393.4 MB, free: 4.52 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02631/0.3459, allocations: 16.64 MB / 410.1 MB, free: 3.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.346, allocations: 19.92 kB / 410.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02702/0.373, allocations: 11.36 MB / 421.4 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.384, allocations: 6.974 MB / 428.4 MB, free: 1.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007184/0.3847, allocations: 0.9461 MB / 429.4 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00327/0.388, allocations: 1.246 MB / 430.6 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02754/0.4155, allocations: 10.97 MB / 441.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004056/0.4159, allocations: 15.89 kB / 441.6 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002203/0.4181, allocations: 0.5159 MB / 442.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005424/0.4187, allocations: 0.7364 MB / 442.9 MB, free: 3.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2424/0.661, allocations: 6.244 MB / 449.1 MB, free: 80.54 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06069/0.7217, allocations: 49.56 MB / 498.7 MB, free: 58.47 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/0.7344, allocations: 13.82 MB / 0.5005 GB, free: 54.74 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002947/0.7374, allocations: 1.853 MB / 0.5023 GB, free: 53.46 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00991/0.7473, allocations: 6.994 MB / 0.5091 GB, free: 46.77 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.7473, allocations: 75.61 kB / 0.5092 GB, free: 46.69 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 5.019e-06/0.7474, allocations: 3.828 kB / 0.5092 GB, free: 46.69 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01823/0.7656, allocations: 11.3 MB / 0.5202 GB, free: 35.93 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.7656, allocations: 90.47 kB / 0.5203 GB, free: 35.83 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004428/0.77, allocations: 4.851 MB / 0.5251 GB, free: 31.14 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003583/0.7704, allocations: 89.7 kB / 0.5251 GB, free: 31.05 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002022/0.7724, allocations: 6.363 MB / 0.5314 GB, free: 24.84 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007493/0.7732, allocations: 1.471 MB / 0.5328 GB, free: 23.39 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/0.7745, allocations: 1.655 MB / 0.5344 GB, free: 21.72 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.811e-05/0.7745, allocations: 488.7 kB / 0.5349 GB, free: 21.24 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/0.776, allocations: 1.022 MB / 0.5359 GB, free: 20.22 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/0.7787, allocations: 6.549 MB / 0.5423 GB, free: 11.3 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00514/0.7838, allocations: 8.362 MB / 0.5504 GB, free: 1.008 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.473e-05/0.7839, allocations: 36 kB / 0.5505 GB, free: 0.9727 MB / 378.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.008846/0.7927, allocations: 6.921 MB / 0.5572 GB, free: 10.81 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.7928, allocations: 62.95 kB / 0.5573 GB, free: 10.75 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.7929, allocations: 128.4 kB / 0.5574 GB, free: 10.63 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.7947, allocations: 0.9191 MB / 0.5583 GB, free: 9.691 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.7983, allocations: 1.794 MB / 0.5601 GB, free: 8.035 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006624/0.805, allocations: 8.522 MB / 0.5684 GB, free: 15.24 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003418/0.8084, allocations: 431.6 kB / 0.5688 GB, free: 14.82 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006034/0.809, allocations: 420.9 kB / 0.5692 GB, free: 14.41 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002358/0.8113, allocations: 0.7094 MB / 0.5699 GB, free: 13.82 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009289/0.8123, allocations: 0.6528 MB / 0.5705 GB, free: 13.17 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005031/0.8173, allocations: 3.669 MB / 0.5741 GB, free: 9.477 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.8173, allocations: 40 kB / 0.5741 GB, free: 9.438 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.8173, allocations: 8 kB / 0.5741 GB, free: 9.43 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.379e-05/0.8174, allocations: 23.92 kB / 0.5742 GB, free: 9.406 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1466/0.9639, allocations: 11.66 MB / 0.5856 GB, free: 91.94 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.9639, allocations: 5.938 kB / 0.5856 GB, free: 91.94 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/0.9659, allocations: 0.7421 MB / 0.5863 GB, free: 91.94 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/0.9676, allocations: 0.7385 MB / 0.587 GB, free: 91.88 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/0.9678, allocations: 84.33 kB / 0.5871 GB, free: 91.88 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004923/0.9727, allocations: 7.99 MB / 0.5949 GB, free: 86.46 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.9727, allocations: 3.406 kB / 0.5949 GB, free: 86.46 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006209/0.9789, allocations: 4.59 MB / 0.5994 GB, free: 85.82 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.9804, allocations: 0.9147 MB / 0.6003 GB, free: 85.81 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004702/0.9809, allocations: 71.42 kB / 0.6003 GB, free: 85.81 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.982, allocations: 209 kB / 0.6005 GB, free: 85.81 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004094/0.9824, allocations: 278.2 kB / 0.6008 GB, free: 85.81 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/0.9826, allocations: 119.3 kB / 0.6009 GB, free: 85.8 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.0026/0.9852, allocations: 2.211 MB / 0.6031 GB, free: 85.58 MB / 410.8 MB Notification: Performance of sort global known variables: time 7e-08/0.9852, allocations: 0 / 0.6031 GB, free: 85.58 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005425/0.9906, allocations: 1.965 MB / 0.605 GB, free: 85.58 MB / 410.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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005646/0.9912, allocations: 259.3 kB / 0.6052 GB, free: 85.5 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.006208/0.9974, allocations: 4.967 MB / 0.6101 GB, free: 84.78 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.9974, allocations: 6.875 kB / 0.6101 GB, free: 84.78 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/0.9997, allocations: 2.268 MB / 0.6123 GB, free: 84.15 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/1.003, allocations: 1.206 MB / 0.6135 GB, free: 84.04 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/1.024, allocations: 18.15 MB / 0.6312 GB, free: 77.25 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002812/1.027, allocations: 3.207 MB / 0.6344 GB, free: 76.9 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.003795/1.031, allocations: 2.008 MB / 0.6363 GB, free: 75.75 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008029/1.031, allocations: 411.2 kB / 0.6367 GB, free: 75.39 MB / 410.8 MB Notification: Performance of SimCode: time 2.064e-06/1.031, allocations: 0 / 0.6367 GB, free: 75.39 MB / 410.8 MB Notification: Performance of Templates: time 0.08096/1.112, allocations: 68.21 MB / 0.7033 GB, free: 9.684 MB / 410.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.58467249199748]