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.0009465/0.0009465, allocations: 82.28 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0009472/0.0009472, allocations: 141.1 kB / 25.59 MB, free: 8.906 MB / 18.57 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 0.9034/0.9034, allocations: 173.4 MB / 202.2 MB, free: 8.281 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 269.2 MB, free: 9.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038e-05/1.168e-05, allocations: 4.703 kB / 269.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02611/0.02612, allocations: 36.98 MB / 306.2 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.0427, allocations: 10.31 MB / 316.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003919/0.04662, allocations: 370 kB / 316.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009447/0.05606, allocations: 8.821 MB / 325.7 MB, free: 1.043 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006579/0.06264, allocations: 3.572 MB / 329.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003306/0.06595, allocations: 2.333 MB / 331.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1186/0.1846, allocations: 13.4 MB / 345 MB, free: 18.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01895/0.2035, allocations: 17.19 MB / 362.2 MB, free: 17.55 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008951/0.2125, allocations: 10.65 MB / 372.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006723/0.2192, allocations: 7.426 MB / 380.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002866/0.222, allocations: 1.938 MB / 382.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002585/0.2246, allocations: 2.329 MB / 384.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.2263, allocations: 4.066 MB / 388.6 MB, free: 5.984 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003896/0.2302, allocations: 5.114 MB / 393.7 MB, free: 1.496 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01403/0.2442, allocations: 12.74 MB / 406.5 MB, free: 6.594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2442, allocations: 0 / 406.5 MB, free: 6.594 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2442, allocations: 0 / 406.5 MB, free: 6.594 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003652/0.2446, allocations: 0 / 406.5 MB, free: 6.594 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02614/0.2707, allocations: 15.44 MB / 421.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.2708, allocations: 8.031 kB / 421.9 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01715/0.2879, allocations: 6.255 MB / 428.2 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009475/0.2974, allocations: 7.233 MB / 435.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005517/0.2979, allocations: 0.9078 MB / 436.3 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001758/0.2997, allocations: 1.199 MB / 437.5 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.3132, allocations: 9.389 MB / 446.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/0.3133, allocations: 21.5 kB / 446.9 MB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007945/0.3141, allocations: 0.4972 MB / 447.4 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000407/0.3146, allocations: 0.6459 MB / 448.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006777/0.3213, allocations: 4.221 MB / 452.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.285/0.6063, allocations: 46.84 MB / 499.1 MB, free: 74.85 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007516/0.6138, allocations: 7.723 MB / 0.495 GB, free: 74.45 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.6154, allocations: 1.457 MB / 0.4964 GB, free: 74.37 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006907/0.6223, allocations: 5.281 MB / 0.5015 GB, free: 73.95 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.6223, allocations: 75.05 kB / 0.5016 GB, free: 73.9 MB / 410.8 MB Notification: Performance of pre-optimization done (n=349): time 5.38e-06/0.6223, allocations: 0 / 0.5016 GB, free: 73.9 MB / 410.8 MB Notification: Performance of matching and sorting (n=389): time 0.01397/0.6363, allocations: 8.741 MB / 0.5102 GB, free: 72.98 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.6363, allocations: 98.09 kB / 0.5103 GB, free: 72.91 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/0.6397, allocations: 4.335 MB / 0.5145 GB, free: 72.36 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.6399, allocations: 90.39 kB / 0.5146 GB, free: 72.33 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002098/0.642, allocations: 5.927 MB / 0.5204 GB, free: 69.79 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006211/0.6426, allocations: 1.456 MB / 0.5218 GB, free: 68.9 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.644, allocations: 1.477 MB / 0.5232 GB, free: 68.77 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.529e-05/0.644, allocations: 480.7 kB / 0.5237 GB, free: 68.3 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009865/0.645, allocations: 0.7305 MB / 0.5244 GB, free: 68.28 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.647, allocations: 5.237 MB / 0.5295 GB, free: 62.78 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003838/0.6509, allocations: 6.705 MB / 0.5361 GB, free: 57.21 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-05/0.6509, allocations: 29.06 kB / 0.5361 GB, free: 57.21 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.005998/0.6569, allocations: 5.585 MB / 0.5415 GB, free: 56.62 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.657, allocations: 48.09 kB / 0.5416 GB, free: 56.62 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-05/0.6571, allocations: 98.25 kB / 0.5417 GB, free: 56.62 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.6586, allocations: 0.8547 MB / 0.5425 GB, free: 56.52 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/0.6612, allocations: 1.469 MB / 0.5439 GB, free: 56.52 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004745/0.666, allocations: 8.187 MB / 0.5519 GB, free: 50.99 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002276/0.6682, allocations: 277.5 kB / 0.5522 GB, free: 50.96 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/0.6685, allocations: 297.8 kB / 0.5525 GB, free: 50.96 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.001999/0.6705, allocations: 0.6344 MB / 0.5531 GB, free: 50.72 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000636/0.6712, allocations: 0.6236 MB / 0.5537 GB, free: 50.45 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003707/0.6749, allocations: 3.268 MB / 0.5569 GB, free: 48.98 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.6749, allocations: 39.62 kB / 0.5569 GB, free: 48.95 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.6749, allocations: 16 kB / 0.557 GB, free: 48.93 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.6749, allocations: 22.69 kB / 0.557 GB, free: 48.93 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.6852, allocations: 8.625 MB / 0.5654 GB, free: 44.48 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.076e-06/0.6852, allocations: 7.516 kB / 0.5654 GB, free: 44.47 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/0.6867, allocations: 0.6404 MB / 0.566 GB, free: 43.97 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.688, allocations: 0.6993 MB / 0.5667 GB, free: 43.49 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/0.6882, allocations: 92.08 kB / 0.5668 GB, free: 43.46 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.6921, allocations: 7.747 MB / 0.5744 GB, free: 36.82 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6921, allocations: 7.75 kB / 0.5744 GB, free: 36.82 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/0.6978, allocations: 4.005 MB / 0.5783 GB, free: 33.68 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.6996, allocations: 0.8336 MB / 0.5791 GB, free: 33.2 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005093/0.7001, allocations: 78.77 kB / 0.5792 GB, free: 33.18 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.7013, allocations: 111.2 kB / 0.5793 GB, free: 33.13 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/0.7016, allocations: 269.7 kB / 0.5795 GB, free: 33.03 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001617/0.7018, allocations: 92.3 kB / 0.5796 GB, free: 32.98 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001831/0.7036, allocations: 1.891 MB / 0.5815 GB, free: 31.84 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7036, allocations: 0 / 0.5815 GB, free: 31.84 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004663/0.7083, allocations: 1.856 MB / 0.5833 GB, free: 30.15 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%), (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.0004355/0.7087, allocations: 265.5 kB / 0.5836 GB, free: 29.98 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004826/0.7136, allocations: 4.24 MB / 0.5877 GB, free: 26.59 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.7136, allocations: 3.75 kB / 0.5877 GB, free: 26.59 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001916/0.7155, allocations: 2.124 MB / 0.5898 GB, free: 24.7 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/0.7186, allocations: 1.173 MB / 0.5909 GB, free: 23.86 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02124/0.7398, allocations: 17.01 MB / 0.6075 GB, free: 7.387 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002288/0.7421, allocations: 3.084 MB / 0.6105 GB, free: 4.273 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.002527/0.7446, allocations: 0.8001 MB / 0.6113 GB, free: 3.469 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/0.7464, allocations: 1.236 MB / 0.6125 GB, free: 2.23 MB / 410.8 MB Notification: Performance of SimCode: time 1.623e-06/0.7464, allocations: 0 / 0.6125 GB, free: 2.23 MB / 410.8 MB Notification: Performance of Templates: time 0.2245/0.9709, allocations: 70.59 MB / 0.6815 GB, free: 103 MB / 442.8 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] 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","",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.637317438144237]