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.001841/0.001841, allocations: 96.3 kB / 21.73 MB, free: 2.699 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.002201/0.002201, allocations: 173 kB / 25.02 MB, free: 8.418 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 1.352/1.352, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] 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.1.|currentController.y.2.|currentController.y.3.",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.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 250.4 MB, free: 3.871 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.53e-05/2.689e-05, allocations: 2.312 kB / 250.4 MB, free: 3.867 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04989/0.04992, allocations: 34.33 MB / 284.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.07556, allocations: 10.33 MB / 295.1 MB, free: 7.016 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007233/0.08279, allocations: 326.1 kB / 295.4 MB, free: 6.695 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1455/0.2283, allocations: 8.454 MB / 303.8 MB, free: 16.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01351/0.2418, allocations: 3.777 MB / 307.6 MB, free: 16.02 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007524/0.2494, allocations: 2.396 MB / 310 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.2676, allocations: 13.96 MB / 324 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02838/0.296, allocations: 17.28 MB / 341.3 MB, free: 3.133 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02666/0.3227, allocations: 10.63 MB / 351.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01698/0.3397, allocations: 7.01 MB / 358.9 MB, free: 2.617 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006456/0.3461, allocations: 1.988 MB / 360.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01006/0.3562, allocations: 2.382 MB / 363.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007618/0.3638, allocations: 4.242 MB / 367.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01442/0.3782, allocations: 5.252 MB / 372.8 MB, free: 5.297 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04557/0.4238, allocations: 26.79 MB / 399.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4238, allocations: 3.938 kB / 399.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4238, allocations: 0 / 399.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009187/0.4247, allocations: 0 / 399.6 MB, free: 11.21 MB / 346.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.05181/0.4765, allocations: 15.67 MB / 415.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.4766, allocations: 19.97 kB / 415.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05822/0.5348, allocations: 11.33 MB / 426.6 MB, free: 304 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01989/0.5547, allocations: 7.748 MB / 434.3 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001577/0.5563, allocations: 0.9462 MB / 435.3 MB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00521/0.5615, allocations: 1.253 MB / 436.5 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2734/0.8349, allocations: 20.38 MB / 456.9 MB, free: 112.2 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000523/0.8354, allocations: 16.62 kB / 456.9 MB, free: 112.2 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00338/0.8388, allocations: 0.514 MB / 457.4 MB, free: 111.8 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009319/0.8397, allocations: 0.7307 MB / 458.2 MB, free: 111.7 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03361/0.8734, allocations: 18.9 MB / 477.1 MB, free: 102.2 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08575/0.9591, allocations: 55.1 MB / 0.5197 GB, free: 47.18 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02222/0.9813, allocations: 14.8 MB / 0.5341 GB, free: 35.73 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005397/0.9867, allocations: 3.744 MB / 0.5378 GB, free: 31.97 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01798/1.005, allocations: 10.1 MB / 0.5477 GB, free: 22.1 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/1.005, allocations: 73.3 kB / 0.5477 GB, free: 22.02 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 6.071e-06/1.005, allocations: 0 / 0.5477 GB, free: 22.02 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.03367/1.038, allocations: 17.99 MB / 0.5653 GB, free: 4.516 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/1.038, allocations: 90.47 kB / 0.5654 GB, free: 4.414 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/1.045, allocations: 5.266 MB / 0.5705 GB, free: 15.32 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006564/1.046, allocations: 89.7 kB / 0.5706 GB, free: 15.22 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005861/1.052, allocations: 6.076 MB / 0.5766 GB, free: 9.156 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0021/1.054, allocations: 1.42 MB / 0.5779 GB, free: 7.754 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002838/1.057, allocations: 1.497 MB / 0.5794 GB, free: 6.25 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001741/1.057, allocations: 305.1 kB / 0.5797 GB, free: 5.949 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005981/1.063, allocations: 3.08 MB / 0.5827 GB, free: 2.867 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1438/1.207, allocations: 6.804 MB / 0.5893 GB, free: 113.4 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01362/1.22, allocations: 10.59 MB / 0.5997 GB, free: 106.8 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002827/1.22, allocations: 36.72 kB / 0.5997 GB, free: 106.8 MB / 394.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01852/1.239, allocations: 11.15 MB / 0.6106 GB, free: 102.5 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.239, allocations: 62.44 kB / 0.6107 GB, free: 102.5 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002676/1.239, allocations: 125.9 kB / 0.6108 GB, free: 102.5 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003107/1.242, allocations: 1.136 MB / 0.6119 GB, free: 102.3 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006114/1.249, allocations: 1.814 MB / 0.6137 GB, free: 102.1 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.259, allocations: 9.785 MB / 0.6232 GB, free: 95.68 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005878/1.265, allocations: 441.7 kB / 0.6236 GB, free: 95.56 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009711/1.266, allocations: 422.5 kB / 0.624 GB, free: 95.5 MB / 394.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.006319/1.272, allocations: 4.454 MB / 0.6284 GB, free: 93.38 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.273, allocations: 0.6654 MB / 0.629 GB, free: 93.32 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00949/1.283, allocations: 6.468 MB / 0.6354 GB, free: 90.69 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/1.283, allocations: 40.66 kB / 0.6354 GB, free: 90.69 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/1.283, allocations: 7.531 kB / 0.6354 GB, free: 90.69 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.152e-05/1.283, allocations: 18.52 kB / 0.6354 GB, free: 90.69 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02046/1.303, allocations: 13.48 MB / 0.6486 GB, free: 79.56 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/1.304, allocations: 4 kB / 0.6486 GB, free: 79.56 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003009/1.307, allocations: 0.7512 MB / 0.6493 GB, free: 78.95 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00263/1.309, allocations: 0.9522 MB / 0.6503 GB, free: 78.21 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/1.309, allocations: 83.64 kB / 0.6503 GB, free: 78.14 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008042/1.317, allocations: 8.905 MB / 0.659 GB, free: 69.57 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.317, allocations: 4 kB / 0.659 GB, free: 69.56 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/1.329, allocations: 9.624 MB / 0.6684 GB, free: 60.13 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/1.331, allocations: 0.9997 MB / 0.6694 GB, free: 59.36 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006545/1.332, allocations: 81.09 kB / 0.6695 GB, free: 59.29 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002239/1.334, allocations: 219.8 kB / 0.6697 GB, free: 59.07 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005314/1.335, allocations: 282.5 kB / 0.67 GB, free: 58.79 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/1.335, allocations: 116 kB / 0.6701 GB, free: 58.68 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.003902/1.339, allocations: 3.293 MB / 0.6733 GB, free: 55.4 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.2e-07/1.339, allocations: 0 / 0.6733 GB, free: 55.4 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.00678/1.345, allocations: 1.982 MB / 0.6752 GB, free: 53.42 MB / 394.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.000611/1.346, allocations: 251 kB / 0.6755 GB, free: 53.18 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01098/1.357, allocations: 7.598 MB / 0.6829 GB, free: 45.55 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.357, allocations: 4 kB / 0.6829 GB, free: 45.54 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004604/1.362, allocations: 3.156 MB / 0.686 GB, free: 42.35 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005388/1.367, allocations: 1.222 MB / 0.6872 GB, free: 41.16 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0297/1.397, allocations: 21.39 MB / 0.7081 GB, free: 19.67 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006836/1.404, allocations: 7.205 MB / 0.7151 GB, free: 12.42 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00569/1.409, allocations: 2.31 MB / 0.7173 GB, free: 10.1 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/1.41, allocations: 424.4 kB / 0.7178 GB, free: 9.688 MB / 394.8 MB Notification: Performance of SimCode: time 1.392e-06/1.41, allocations: 0 / 0.7178 GB, free: 9.688 MB / 394.8 MB Notification: Performance of Templates: time 0.2541/1.665, allocations: 66.1 MB / 0.7823 GB, free: 102.5 MB / 410.8 MB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 8.762098775012419]