Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 81.06 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00217/0.00217, allocations: 147.6 kB / 23.93 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 173.4 MB / 200.4 MB, free: 12.91 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0.5625 kB / 319 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.243e-05, allocations: 7.312 kB / 319 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03985/0.03988, allocations: 33.87 MB / 352.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02352/0.0634, allocations: 10.14 MB / 363 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007653/0.07105, allocations: 370 kB / 363.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0213/0.09236, allocations: 8.436 MB / 371.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.1046, allocations: 3.56 MB / 375.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006904/0.1115, allocations: 2.327 MB / 377.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01829/0.1298, allocations: 13.4 MB / 391.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03177/0.1616, allocations: 17.17 MB / 408.2 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01851/0.1801, allocations: 10.31 MB / 418.5 MB, free: 7.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01289/0.193, allocations: 6.658 MB / 425.2 MB, free: 1.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005265/0.1982, allocations: 1.953 MB / 427.2 MB, free: 15.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007342/0.2056, allocations: 2.331 MB / 429.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006596/0.2122, allocations: 4.04 MB / 433.5 MB, free: 8.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01259/0.2248, allocations: 5.072 MB / 438.6 MB, free: 3.598 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03638/0.2611, allocations: 26.22 MB / 464.8 MB, free: 9.301 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.2611, allocations: 0 / 464.8 MB, free: 9.301 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.2611, allocations: 0 / 464.8 MB, free: 9.301 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007776/0.2619, allocations: 0 / 464.8 MB, free: 9.301 MB / 430.1 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.322/0.5839, allocations: 15.07 MB / 479.9 MB, free: 114.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.584, allocations: 10.55 kB / 479.9 MB, free: 114.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03396/0.6179, allocations: 6.217 MB / 486.1 MB, free: 113 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01681/0.6347, allocations: 8.075 MB / 494.2 MB, free: 108.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001107/0.6358, allocations: 0.9104 MB / 495.1 MB, free: 108.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00381/0.6397, allocations: 1.192 MB / 496.3 MB, free: 107.9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03532/0.675, allocations: 18.88 MB / 0.5031 GB, free: 91.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004742/0.6754, allocations: 15.91 kB / 0.5031 GB, free: 91.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002724/0.6782, allocations: 0.4951 MB / 0.5036 GB, free: 90.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004631/0.6786, allocations: 0.6421 MB / 0.5042 GB, free: 89.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/0.7058, allocations: 16.72 MB / 0.5206 GB, free: 73.22 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0854/0.7912, allocations: 50.59 MB / 0.57 GB, free: 22.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01685/0.808, allocations: 10.14 MB / 0.5799 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005424/0.8134, allocations: 3.374 MB / 0.5832 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01635/0.8298, allocations: 7.594 MB / 0.5906 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.8298, allocations: 77.3 kB / 0.5906 GB, free: 2.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 6.793e-06/0.8298, allocations: 0 / 0.5906 GB, free: 2.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.0388/0.8686, allocations: 17.18 MB / 0.6074 GB, free: 1.559 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.841e-05/0.8687, allocations: 90.47 kB / 0.6075 GB, free: 1.457 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008708/0.8774, allocations: 4.772 MB / 0.6122 GB, free: 12.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006871/0.8781, allocations: 93.64 kB / 0.6123 GB, free: 12.58 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004409/0.8825, allocations: 5.618 MB / 0.6177 GB, free: 6.949 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/0.8843, allocations: 1.405 MB / 0.6191 GB, free: 5.562 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003305/0.8877, allocations: 1.303 MB / 0.6204 GB, free: 4.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8878, allocations: 305.1 kB / 0.6207 GB, free: 3.949 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005428/0.8932, allocations: 2.91 MB / 0.6235 GB, free: 1.035 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008631/0.9018, allocations: 5.92 MB / 0.6293 GB, free: 9.699 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01502/0.9169, allocations: 9.448 MB / 0.6385 GB, free: 14.81 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.917, allocations: 28 kB / 0.6386 GB, free: 14.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02023/0.9372, allocations: 9.814 MB / 0.6481 GB, free: 4.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.9374, allocations: 50.66 kB / 0.6482 GB, free: 4.863 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/0.9376, allocations: 100.4 kB / 0.6483 GB, free: 4.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002861/0.9405, allocations: 0.9335 MB / 0.6492 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006621/0.9471, allocations: 1.587 MB / 0.6508 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.197/1.144, allocations: 9.679 MB / 0.6602 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005677/1.15, allocations: 405.4 kB / 0.6606 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/1.151, allocations: 356.7 kB / 0.6609 GB, free: 153 MB / 494.1 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.00839/1.159, allocations: 4.248 MB / 0.6651 GB, free: 151.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001628/1.161, allocations: 0.5009 MB / 0.6656 GB, free: 151.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/1.174, allocations: 6.435 MB / 0.6719 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.17e-05/1.174, allocations: 39.59 kB / 0.6719 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.409e-05/1.174, allocations: 9.094 kB / 0.6719 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.887e-05/1.175, allocations: 22.7 kB / 0.6719 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02405/1.199, allocations: 13.25 MB / 0.6849 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.199, allocations: 3.625 kB / 0.6849 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003081/1.202, allocations: 0.7425 MB / 0.6856 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/1.204, allocations: 0.7907 MB / 0.6864 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002865/1.204, allocations: 85.88 kB / 0.6864 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008998/1.213, allocations: 8.84 MB / 0.6951 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.213, allocations: 0 / 0.6951 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.226, allocations: 9.467 MB / 0.7043 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002601/1.229, allocations: 0.9762 MB / 0.7053 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/1.23, allocations: 74.66 kB / 0.7053 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00292/1.233, allocations: 225.3 kB / 0.7056 GB, free: 131.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005939/1.233, allocations: 279.6 kB / 0.7058 GB, free: 131.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002494/1.234, allocations: 113.8 kB / 0.7059 GB, free: 131.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004308/1.238, allocations: 3.05 MB / 0.7089 GB, free: 128.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/1.238, allocations: 0 / 0.7089 GB, free: 128.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007123/1.245, allocations: 1.875 MB / 0.7107 GB, free: 126.7 MB / 494.1 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.0007509/1.246, allocations: 265.2 kB / 0.711 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.011/1.257, allocations: 7.206 MB / 0.718 GB, free: 119.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/1.257, allocations: 4 kB / 0.718 GB, free: 119.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005361/1.262, allocations: 3.158 MB / 0.7211 GB, free: 116.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008294/1.27, allocations: 1.151 MB / 0.7222 GB, free: 115 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04242/1.313, allocations: 19.98 MB / 0.7418 GB, free: 94.95 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01209/1.325, allocations: 6.924 MB / 0.7485 GB, free: 87.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007346/1.332, allocations: 2.111 MB / 0.7506 GB, free: 85.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001901/1.334, allocations: 388.4 kB / 0.751 GB, free: 85.48 MB / 494.1 MB Notification: Performance of SimCode: time 1.793e-06/1.334, allocations: 0 / 0.751 GB, free: 85.48 MB / 494.1 MB Notification: Performance of Templates: time 0.1107/1.445, allocations: 64.17 MB / 0.8136 GB, free: 22.21 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.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.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.19139839708805]