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.001033/0.001033, allocations: 80.39 kB / 22.21 MB, free: 2.285 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.001695/0.001695, allocations: 164.5 kB / 25.6 MB, free: 8.891 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.8656/0.8656, allocations: 158.6 MB / 187.5 MB, free: 2.82 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 1.733e-06/1.733e-06, allocations: 0 / 251.5 MB, free: 7.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.055e-05, allocations: 2.312 kB / 251.5 MB, free: 7.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02852/0.02854, allocations: 37.51 MB / 289 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02009/0.04863, allocations: 10.48 MB / 299.5 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006678/0.05531, allocations: 318.2 kB / 299.8 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01273/0.06804, allocations: 8.856 MB / 308.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.07908, allocations: 3.79 MB / 312.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005344/0.08443, allocations: 2.404 MB / 314.9 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01559/0.1, allocations: 13.96 MB / 328.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02693/0.1269, allocations: 17.3 MB / 346.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1477/0.2746, allocations: 10.97 MB / 357.1 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00998/0.2846, allocations: 7.775 MB / 364.9 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004825/0.2894, allocations: 1.977 MB / 366.8 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007046/0.2965, allocations: 2.367 MB / 369.2 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00552/0.302, allocations: 4.28 MB / 373.5 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008684/0.3107, allocations: 5.296 MB / 378.8 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.3258, allocations: 12.98 MB / 391.8 MB, free: 31.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3258, allocations: 2.594 kB / 391.8 MB, free: 31.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3258, allocations: 0.75 kB / 391.8 MB, free: 31.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006381/0.3264, allocations: 0 / 391.8 MB, free: 31.7 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.02668/0.3531, allocations: 16.08 MB / 407.9 MB, free: 21.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3531, allocations: 11.98 kB / 407.9 MB, free: 21.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02449/0.3776, allocations: 8.454 MB / 416.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.3882, allocations: 6.473 MB / 422.8 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00061/0.3888, allocations: 0.946 MB / 423.7 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003499/0.3923, allocations: 1.247 MB / 425 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03081/0.4231, allocations: 10.04 MB / 435 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004404/0.4235, allocations: 22.08 kB / 435 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002669/0.4262, allocations: 0.5049 MB / 435.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000926/0.4271, allocations: 0.7393 MB / 436.3 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01864/0.4458, allocations: 4.896 MB / 441.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08852/0.5343, allocations: 48.93 MB / 490.1 MB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/0.5475, allocations: 12.12 MB / 0.4905 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/0.5504, allocations: 1.616 MB / 0.492 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.5618, allocations: 6.671 MB / 0.4986 GB, free: 4.684 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.5619, allocations: 76.14 kB / 0.4986 GB, free: 4.598 MB / 410.7 MB Notification: Performance of pre-optimization done (n=349): time 5.991e-06/0.5619, allocations: 0 / 0.4986 GB, free: 4.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=389): time 0.1742/0.7361, allocations: 9.285 MB / 0.5077 GB, free: 97.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.7362, allocations: 91.91 kB / 0.5078 GB, free: 97.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006356/0.7425, allocations: 4.789 MB / 0.5125 GB, free: 97.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004731/0.743, allocations: 90.55 kB / 0.5126 GB, free: 97.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003093/0.7461, allocations: 6.4 MB / 0.5188 GB, free: 93.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.7473, allocations: 1.477 MB / 0.5202 GB, free: 92.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002014/0.7493, allocations: 1.679 MB / 0.5219 GB, free: 92.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.7493, allocations: 480.3 kB / 0.5223 GB, free: 92.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.7507, allocations: 0.7915 MB / 0.5231 GB, free: 92.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.7539, allocations: 6.352 MB / 0.5293 GB, free: 85.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005898/0.7598, allocations: 7.998 MB / 0.5371 GB, free: 78.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.76, allocations: 42.52 kB / 0.5372 GB, free: 78.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.009622/0.7696, allocations: 6.343 MB / 0.5434 GB, free: 77.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.109e-05/0.7696, allocations: 65.12 kB / 0.5434 GB, free: 77.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/0.7698, allocations: 124.8 kB / 0.5435 GB, free: 77.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.7719, allocations: 0.8827 MB / 0.5444 GB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/0.776, allocations: 1.691 MB / 0.5461 GB, free: 77.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005124/0.7811, allocations: 8.247 MB / 0.5541 GB, free: 72.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00442/0.7856, allocations: 325 kB / 0.5544 GB, free: 72.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007544/0.7863, allocations: 358.2 kB / 0.5548 GB, free: 72.21 MB / 410.7 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.003453/0.7898, allocations: 0.7064 MB / 0.5555 GB, free: 71.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/0.7908, allocations: 0.6593 MB / 0.5561 GB, free: 71.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004432/0.7952, allocations: 3.308 MB / 0.5593 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.7953, allocations: 38.34 kB / 0.5594 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.7953, allocations: 10.84 kB / 0.5594 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/0.7953, allocations: 20.3 kB / 0.5594 GB, free: 71.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01408/0.8094, allocations: 8.793 MB / 0.568 GB, free: 70.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.8094, allocations: 3.781 kB / 0.568 GB, free: 70.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.8109, allocations: 0.6515 MB / 0.5686 GB, free: 70.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001363/0.8123, allocations: 0.7052 MB / 0.5693 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.8125, allocations: 80.45 kB / 0.5694 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003979/0.8165, allocations: 7.755 MB / 0.577 GB, free: 64.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.8165, allocations: 11.36 kB / 0.577 GB, free: 64.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.8212, allocations: 4.04 MB / 0.5809 GB, free: 60.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.8226, allocations: 0.8446 MB / 0.5817 GB, free: 60.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004202/0.823, allocations: 78.12 kB / 0.5818 GB, free: 60.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.8241, allocations: 110.2 kB / 0.5819 GB, free: 60.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/0.8244, allocations: 272.8 kB / 0.5822 GB, free: 60.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/0.8245, allocations: 86.81 kB / 0.5823 GB, free: 60.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002057/0.8266, allocations: 2.042 MB / 0.5843 GB, free: 59.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.8266, allocations: 0 / 0.5843 GB, free: 59.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005302/0.8319, allocations: 1.966 MB / 0.5862 GB, free: 57.27 MB / 410.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%), (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.0004587/0.8324, allocations: 269.1 kB / 0.5864 GB, free: 57.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005142/0.8375, allocations: 4.571 MB / 0.5909 GB, free: 53.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.8375, allocations: 0 / 0.5909 GB, free: 53.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001936/0.8394, allocations: 2.105 MB / 0.593 GB, free: 52.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/0.843, allocations: 1.203 MB / 0.5941 GB, free: 51.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/0.8669, allocations: 18 MB / 0.6117 GB, free: 34.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002972/0.8698, allocations: 3.2 MB / 0.6148 GB, free: 31.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00277/0.8726, allocations: 0.8901 MB / 0.6157 GB, free: 30.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00196/0.8746, allocations: 1.283 MB / 0.617 GB, free: 29.14 MB / 410.7 MB Notification: Performance of SimCode: time 2.304e-06/0.8746, allocations: 0 / 0.617 GB, free: 29.14 MB / 410.7 MB Notification: Performance of Templates: time 0.243/1.118, allocations: 71.34 MB / 0.6866 GB, free: 107.2 MB / 426.7 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.302616965025663]